summary refs log tree commit diff
path: root/.config/sway/contrib/swayidle.confd
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway/contrib/swayidle.confd')
-rw-r--r--.config/sway/contrib/swayidle.confd8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/sway/contrib/swayidle.confd b/.config/sway/contrib/swayidle.confd
new file mode 100644
index 0000000..405cdbe
--- /dev/null
+++ b/.config/sway/contrib/swayidle.confd
@@ -0,0 +1,8 @@
+
+SWAYIDLE_COMMAND=<<EOF
+timeout 540 'notify-send swayidle "screen off in 60s"'
+timeout 600 'sway output * dpms off'
+	resume 'sway output * dpms on'
+timeout 800 suspend
+before-sleep lock
+EOF