Added lockscreen using swaylock & swayidle.

This commit is contained in:
James Patrick 2019-04-27 22:30:11 -04:00
parent 23ff6d5896
commit 17abddd21f

View File

@ -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