From 6cc60de242c3b8c96d65fbe7d8ec1059e88de2d4 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Wed, 2 Oct 2019 10:33:32 +1000 Subject: [PATCH] Added timed screen locking --- .config/sway/config | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 57c8aa1..062bf31 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -36,15 +36,13 @@ output * bg ~/Documents/Images/Posters/FuegoMilkyWay.jpg fill # You can get the names of your outputs by running: swaymsg -t get_outputs ### Idle configuration -# -# Example configuration: -# -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * dpms off"' \ -# resume 'swaymsg "output * dpms on"' \ -# before-sleep 'swaylock -f -c 000000' -# + +exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' + # 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 # resumed. It will also lock your screen before your computer goes to sleep.