From 7b6d96c1c4cfbbf92df710e97a55fdc35099441a Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 2 May 2021 23:13:13 +0300 Subject: [PATCH] Revert "sway/config: Disable swaylock" This reverts commit a1f6918c52888ba88f14077c8c86888b81916d08. I just tried swaylock-git with sway-git and it seems to be working. --- sway/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/config b/sway/config index 33c5466..dc775a3 100644 --- a/sway/config +++ b/sway/config @@ -97,8 +97,10 @@ exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob set $lock_bg ~/Downloads/3121px-Jerusalem-2013-Temple_Mount-Dome_of_the_Rock-Detail_01.jpg exec swayidle \ + timeout 300 'swaylock -c 000000 -i $lock_bg' \ timeout 600 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -c 000000 -i $lock_bg' # # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when