From 17f25883df8ab70564451256dfb52b885fa80896 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 13 Mar 2020 18:22:25 +0100 Subject: [PATCH] Remove lock after inactivity --- fish/.config/fish/config.fish | 2 +- sway/.config/sway/config | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index 43e0215..71ef078 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -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" diff --git a/sway/.config/sway/config b/sway/.config/sway/config index d46c6ee..323bfde 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -272,22 +272,16 @@ bindsym $mod+Pause mode "$Pause-break" set $Pause-break (p) poweroff, (r) reboot mode "$Pause-break" { -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 s exec --no-startup-id sudo shutdown -h now, mode "default" + bindsym r exec --no-startup-id sudo shutdown -r now, mode "default" -bindsym Return mode "default" -bindsym Escape mode "default" + bindsym Return mode "default" + 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' #