aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-11-24 21:01:24 +0100
committerDavid Runge <dave@sleepmap.de>2021-11-24 21:01:24 +0100
commit9ecb5ce633aba575d1a1cd4f387c25d9ae936b92 (patch)
treef711be1f5e7070f3126ec1abbf786de2d4473b37
parentc6e0d3ddf0bee8144d08fb79a6b1ab5a589a6a04 (diff)
downloaddotfiles-9ecb5ce633aba575d1a1cd4f387c25d9ae936b92.tar.gz
dotfiles-9ecb5ce633aba575d1a1cd4f387c25d9ae936b92.tar.bz2
dotfiles-9ecb5ce633aba575d1a1cd4f387c25d9ae936b92.tar.xz
dotfiles-9ecb5ce633aba575d1a1cd4f387c25d9ae936b92.zip
swayidle: Add configuration
.config/swayidle/config: Add simple swayidle configuration to lock with waylock after 5min of inactivity, switch of screens after 10min and turn them back on again upon resume. Ensure to run waylock before sleep state is reached.
-rw-r--r--.config/swayidle/config3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/swayidle/config b/.config/swayidle/config
new file mode 100644
index 0000000..804f0cd
--- /dev/null
+++ b/.config/swayidle/config
@@ -0,0 +1,3 @@
+timeout 300 'setsid -f waylock'
+timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
+before-sleep 'setsid -f waylock'