aboutsummaryrefslogtreecommitdiff
path: root/config/swayidle
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-01-03 14:45:37 +0100
committerKarel Kočí <cynerd@email.cz>2022-01-03 14:45:37 +0100
commita104edcc9aa7dbc0801ce4a329725b32a609620c (patch)
tree25645bbcecbee8ebae7a78bc2703e84fc87a2b5c /config/swayidle
parenta9cedcceca62f5ab93befcdef226196d76ac1981 (diff)
downloadmyconfigs-a104edcc9aa7dbc0801ce4a329725b32a609620c.tar.gz
myconfigs-a104edcc9aa7dbc0801ce4a329725b32a609620c.tar.bz2
myconfigs-a104edcc9aa7dbc0801ce4a329725b32a609620c.zip
sway: improve support with swaylock
Diffstat (limited to 'config/swayidle')
-rw-r--r--config/swayidle/config7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/swayidle/config b/config/swayidle/config
new file mode 100644
index 0000000..c344033
--- /dev/null
+++ b/config/swayidle/config
@@ -0,0 +1,7 @@
+timeout 301 'swaymsg output "*" dpms off' resume 'swaymsg output "*" dpms on'
+
+timeout 300 'myswaylock'
+lock 'myswaylock'
+before-sleep 'myswaylock'
+
+unlock 'killall swaylock'