seatd/libseat, packaged for the Zig build system.
Built with the seatd backend (no logind/systemd dependency).
First, update your build.zig.zon:
zig fetch --save git+https://github.com/allyourcodebase/libseat.git
Then in your build.zig:
const libseat = b.dependency("libseat", .{ .target = target, .optimize = optimize });
exe.linkLibrary(libseat.artifact("seat"));