Remove lock after inactivity

This commit is contained in:
coolneng 2020-03-13 18:22:25 +01:00
parent e139aac27b
commit 17f25883df
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 5 additions and 11 deletions

View File

@ -19,7 +19,7 @@ set -x ZPOOL_VDEV_NAME_PATH 1
# Aliases
alias f "fff"
alias peerflix "peerflix -d"
alias xi "xbps-install -S"
alias xa "xbps-install -S"
alias xu "xbps-install -Su"
alias xc "xbps-remove -o"
alias xr "xbps-remove -Rf"

View File

@ -281,13 +281,7 @@ bindsym Escape mode "default"
# lock screen on suspend
set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png
bindsym $mod+End exec swaylock -i $lock_bg
exec swayidle -w \
timeout 300 'swaylock -f -c 000000 -i $lock_bg' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000 -i $lock_bg'
#