summary refs log tree commit diff
path: root/.local/share/s6/swayidle
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/s6/swayidle')
-rwxr-xr-x.local/share/s6/swayidle/run14
1 files changed, 6 insertions, 8 deletions
diff --git a/.local/share/s6/swayidle/run b/.local/share/s6/swayidle/run
index b41d059..48345ba 100755
--- a/.local/share/s6/swayidle/run
+++ b/.local/share/s6/swayidle/run
@@ -1,9 +1,7 @@
 #!/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'
-}
+swayidle -w -S seat0 \
+  timeout 540 'lock' \
+  timeout 800 'swaymsg output \* dpms off' \
+      resume 'swaymsg output \* dpms on' \
+  before-sleep 'lock' \
+  lock 'lock'