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.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user