aboutsummaryrefslogtreecommitdiff
path: root/sway/swayidle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sway/swayidle.sh')
-rwxr-xr-xsway/swayidle.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/swayidle.sh b/sway/swayidle.sh
new file mode 100755
index 0000000..63d40c0
--- /dev/null
+++ b/sway/swayidle.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+exec swayidle -w timeout 600 'swaymsg "output * power off"' \
+ resume 'swaymsg "output * power on"'