summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-05 16:10:10 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-05 16:10:10 -0700
commit5bfc9ff8ba7b65a23883b0f7291d5e610e6d4b16 (patch)
tree6f33dbd670de33533a060d5fc14536c84a8ca15b /.config
parent4fd23e6a15ee679b52da5c19c60e13bcb9cf50de (diff)
downloaddotfiles-5bfc9ff8ba7b65a23883b0f7291d5e610e6d4b16.tar.gz
comment
Diffstat (limited to '.config')
-rw-r--r--.config/sway/config6
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' \