Use systemd for swayidle
This commit is contained in:
parent
e5d74bb252
commit
fd80ca00b6
|
@ -8,9 +8,10 @@ exec "systemctl --user start mako"
|
|||
exec "systemctl --user start gammastep"
|
||||
exec "systemctl --user start kanshi"
|
||||
exec "systemctl --user start greenclip"
|
||||
exec swayidle -w \
|
||||
timeout 300 '$lock' \
|
||||
timeout 305 'swaymsg "output * dpms off"' \
|
||||
timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep '$lock'
|
||||
exec "systemctl --user import-environment; systemctl --user start swayidle"
|
||||
# exec swayidle -w \
|
||||
# timeout 300 '$lock' \
|
||||
# timeout 305 'swaymsg "output * dpms off"' \
|
||||
# timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
|
||||
# resume 'swaymsg "output * dpms on"' \
|
||||
# before-sleep '$lock'
|
||||
|
|
Loading…
Reference in New Issue
Block a user