From 925421a9c2ec13c1de6015e80ee9c399cdb5bf8f Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 12 Jul 2020 16:37:29 -0500 Subject: [PATCH] Change display sleep time and lock time, set an unlocker, and enable display sleep --- .config/sway/common/11-idle_lock.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.config/sway/common/11-idle_lock.conf b/.config/sway/common/11-idle_lock.conf index 81a5a3c..cbd67df 100644 --- a/.config/sway/common/11-idle_lock.conf +++ b/.config/sway/common/11-idle_lock.conf @@ -2,18 +2,20 @@ # # Thurstylark -set $lock-time 600 -set $dispsleep-time 900 +set $lock-time 900 +set $dispsleep-time 600 set $dispsleep 'swaymsg "output * dpms off"' 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 \ timeout $lock-time $locker \ -# timeout $dispsleep-time $dispsleep \ + timeout $dispsleep-time $dispsleep \ resume $dispwake \ after-resume $dispwake \ before-sleep $locker \ - lock $locker + lock $locker \ + unlock $unlocker