From c881f2499322305253f6259f5fc5f69f60ceeea0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 26 Feb 2021 16:07:21 +0100 Subject: sway: Replace swaylock with waylock .config/sway/config: Replace the use of swaylock with waylock, as the former has gaping, undhandled security issues that are not addressed. --- .config/sway/config | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.config/sway/config') diff --git a/.config/sway/config b/.config/sway/config index 9aede99..843d522 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -21,7 +21,7 @@ set $select_screenshot grim -g "$(slurp)" ~/Downloads/screenshot-"$(date +'%Y-%m set $screenshot grim ~/Downloads/screenshot-"$(date +'%Y-%m-%d_%H-%M-%S')".png # lock -set $lock swaylock -f -c 000000 +set $lock setsid -f waylock # brightness set $brightness_up backlight -i "5" @@ -256,13 +256,13 @@ bar { } # Execs -exec [ -x /usr/bin/swayidle ] && [ -x /usr/bin/swaylock ] && swayidle -w \ - timeout 300 'swaylock -F -f -e -c 000000' \ - timeout 600 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ - before-sleep 'swaylock -f -c 000000' exec [ -x /usr/bin/gammastep ] && /usr/bin/gammastep exec [ -x /usr/bin/lxpolkit ] && /usr/bin/lxpolkit exec [ -x /usr/bin/nextcloud ] && /usr/bin/nextcloud +exec [ -x /usr/bin/swayidle ] && [ -x /usr/bin/waylock ] && swayidle -w \ + timeout 300 'setsid -f waylock' \ + timeout 600 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep 'setsid -f waylock' include /etc/sway/config.d/* -- cgit v1.2.3-70-g09d2