aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-02-26 16:07:21 +0100
committerDavid Runge <dave@sleepmap.de>2021-02-26 16:07:21 +0100
commitc881f2499322305253f6259f5fc5f69f60ceeea0 (patch)
treebd10405b264639c3a23fd08447a35dd37ce076fd
parenta61cefe80c544632bbdd8bddfb336e331816bf49 (diff)
downloaddotfiles-c881f2499322305253f6259f5fc5f69f60ceeea0.tar.gz
dotfiles-c881f2499322305253f6259f5fc5f69f60ceeea0.tar.bz2
dotfiles-c881f2499322305253f6259f5fc5f69f60ceeea0.tar.xz
dotfiles-c881f2499322305253f6259f5fc5f69f60ceeea0.zip
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.
-rw-r--r--.config/sway/config12
1 files changed, 6 insertions, 6 deletions
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/*