summaryrefslogtreecommitdiff
path: root/conf.d/swayidle
diff options
context:
space:
mode:
authorBlake Romero <blake@developercraft.com>2025-10-26 21:24:59 +0000
committerBlake Romero <blake@developercraft.com>2025-10-26 21:24:59 +0000
commit86021d60fa0921c7eede8d97bc834f117204a965 (patch)
tree830c29fa2fac401f05ca5e83b26f52cf269278c5 /conf.d/swayidle
parent1572e917434e4a90503c00dfaf61efb03d8bac6a (diff)
Add swayidle config
Diffstat (limited to 'conf.d/swayidle')
-rw-r--r--conf.d/swayidle6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf.d/swayidle b/conf.d/swayidle
new file mode 100644
index 0000000..3cd38cb
--- /dev/null
+++ b/conf.d/swayidle
@@ -0,0 +1,6 @@
+lock="timeout 30 'swaylock -fi ~/.cache/lockwallpaper'"
+display="timeout 10 'swaymsg \"output \"*\" power off\"'"
+resume="resume 'swaymsg \"output \"*\" power on\"'"
+sleep="before-sleep 'swaylock -fi ~/.cache/lockwallpaper'"
+
+command_args="-w $lock $display $resume $sleep"