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 # Aliases
alias f "fff" alias f "fff"
alias peerflix "peerflix -d" alias peerflix "peerflix -d"
alias xi "xbps-install -S" alias xa "xbps-install -S"
alias xu "xbps-install -Su" alias xu "xbps-install -Su"
alias xc "xbps-remove -o" alias xc "xbps-remove -o"
alias xr "xbps-remove -Rf" alias xr "xbps-remove -Rf"

View File

@ -272,22 +272,16 @@ bindsym $mod+Pause mode "$Pause-break"
set $Pause-break (p) poweroff, (r) reboot set $Pause-break (p) poweroff, (r) reboot
mode "$Pause-break" { mode "$Pause-break" {
bindsym s exec --no-startup-id sudo shutdown -h now, mode "default" bindsym s exec --no-startup-id sudo shutdown -h now, mode "default"
bindsym r exec --no-startup-id sudo shutdown -r now, mode "default" bindsym r exec --no-startup-id sudo shutdown -r now, mode "default"
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }
# lock screen on suspend # lock screen on suspend
set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png
bindsym $mod+End exec swaylock -i $lock_bg
exec swayidle -w \ 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' before-sleep 'swaylock -f -c 000000 -i $lock_bg'
# #