summary refs log tree commit diff
path: root/.local/share/s6/swayidle
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-08-31 12:32:52 +0200
committerRobert Günzler <r@gnzler.io>2021-08-31 12:41:21 +0200
commitbdebc9e86ad77316e1d2703cdc2f5d194d51742a (patch)
tree25f9bcec1924bb668e2f2077d229904fbe2a56cb /.local/share/s6/swayidle
parent384babec22004b8a2cdd5cf6c6d4aafa05594813 (diff)
use s6 to manage user services
Diffstat (limited to '.local/share/s6/swayidle')
-rwxr-xr-x.local/share/s6/swayidle/run9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/share/s6/swayidle/run b/.local/share/s6/swayidle/run
new file mode 100755
index 0000000..b41d059
--- /dev/null
+++ b/.local/share/s6/swayidle/run
@@ -0,0 +1,9 @@
+#!/bin/execlineb -P
+foreground {
+  swayidle -w \
+    timeout 540 'lock' \
+    timeout 800 'swaymsg output \* dpms off' \
+        resume 'swaymsg output \* dpms on' \
+    before-sleep 'lock' \
+    lock 'lock'
+}