diff options
-rw-r--r-- | .config/sway/config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config index cf4e904a..b104c377 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -346,6 +346,12 @@ exec update-emacs-daemon-environment exec_always fcitx5 -d --replace +# ideally we wouldn't try to call swaylock if the screen is already locked, +# but discovering whether swaylock is already running in a way that avoids +# races is difficult or impossible because swaylock doesn't have a mechanism +# to report that it's successfully locked the screen other than daemonising. +# so, until it does, the following means a lot of "failed to lock; already +# locked?" messages on stderr. exec swayidle -w \ lock 'swaylock -f' \ before-sleep 'swaylock -f' \ |