1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

xautolock: add xorg dependency. timeout after 5min

This commit is contained in:
Joe Groocock 2020-03-21 22:30:58 +00:00
parent ba8dc84993
commit ddf5a1d387
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -1,8 +1,10 @@
[Unit]
Description=XBindKeys
Description=Lock desktop session after inactivity
Requires=xorg.target
After=xorg.target
[Service]
ExecStart=/usr/bin/xautolock -time 1 -locker 'dm-tool switch-to-greeter' -detectsleep -resetsaver -secure
ExecStart=/usr/bin/xautolock -time 5 -locker 'dm-tool switch-to-greeter' -detectsleep -resetsaver -secure
KillMode=process
Restart=on-failure