Files
xidle-inhibit/xautolock-inhibit.service
T
Daniele Fucini 90b8838835 Initial version of xautolock-inhibit
Own org.freedesktop.ScreenSaver on the session bus and translate
Inhibit/UnInhibit into xautolock -disable/-enable. Cookies are tracked
per sender and released when the sender leaves the bus. Inhibits with
an ignored reason ("Playing audio" by default) are logged but don't
block locking. xautolock is re-enabled on exit.

Add systemd user unit, PKGBUILD and LICENSE.
2026-10-09 19:49:08 +02:00

11 lines
273 B
Desktop File

[Unit]
Description=Turn org.freedesktop.ScreenSaver inhibit requests into xautolock control
[Service]
Type=dbus
BusName=org.freedesktop.ScreenSaver
ExecStart=/usr/bin/xautolock-inhibit
ExecStopPost=-/usr/bin/xautolock -enable
Restart=on-failure
RestartPreventExitStatus=2