This commit is contained in:
2022-02-22 03:40:32 +01:00
parent 222706d7e1
commit 0f3ebffb15
10 changed files with 1326 additions and 29 deletions

View File

@@ -3,7 +3,9 @@ Description=Sleep Manager
PartOf=graphical-session.target
[Service]
ExecStart=/usr/bin/xautolock -time 10 -locker "i3exit suspend" -detectsleep
#ExecStart=/usr/bin/xautolock -time 10 -locker "i3exit suspend" -detectsleep
ExecStart=/usr/bin/swayidle -w timeout 300 'swaylock -f -c 262626' timeout 600 'systemctl suspend' before-sleep 'swaylock -f -c 262626'
Environment=WAYLAND_DISPLAY=wayland-1
[Install]
WantedBy=xsession.target