Change display sleep time and lock time, set an unlocker, and enable display sleep

This commit is contained in:
David Thurstenson 2020-07-12 16:37:29 -05:00
parent 829622a980
commit 925421a9c2
1 changed files with 7 additions and 5 deletions

View File

@ -2,18 +2,20 @@
# #
# Thurstylark # Thurstylark
set $lock-time 600 set $lock-time 900
set $dispsleep-time 900 set $dispsleep-time 600
set $dispsleep 'swaymsg "output * dpms off"' set $dispsleep 'swaymsg "output * dpms off"'
set $dispwake 'swaymsg "output * dpms on"' set $dispwake 'swaymsg "output * dpms on"'
set $locker "swaylock -f -F -l -c 000000" set $locker "swaylock -e -f -F -l -c 000000"
set $unlocker "killall swaylock"
exec swayidle -w \ exec swayidle -w \
timeout $lock-time $locker \ timeout $lock-time $locker \
# timeout $dispsleep-time $dispsleep \ timeout $dispsleep-time $dispsleep \
resume $dispwake \ resume $dispwake \
after-resume $dispwake \ after-resume $dispwake \
before-sleep $locker \ before-sleep $locker \
lock $locker lock $locker \
unlock $unlocker