From 17abddd21f0ac3cc376df9ef3dae5a16789d3ac9 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 27 Apr 2019 22:30:11 -0400 Subject: [PATCH] Added lockscreen using swaylock & swayidle. --- sway/config | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sway/config b/sway/config index a0586e9..ccf95a4 100644 --- a/sway/config +++ b/sway/config @@ -46,11 +46,11 @@ output eDP-1 scale 1.4 # # 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 60 '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