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.
11 lines
273 B
Desktop File
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
|