summaryrefslogtreecommitdiff
path: root/.config/s6-rc/swayidle-nosleep/run
diff options
context:
space:
mode:
Diffstat (limited to '.config/s6-rc/swayidle-nosleep/run')
-rwxr-xr-x.config/s6-rc/swayidle-nosleep/run8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/s6-rc/swayidle-nosleep/run b/.config/s6-rc/swayidle-nosleep/run
new file mode 100755
index 0000000..bc4fcd9
--- /dev/null
+++ b/.config/s6-rc/swayidle-nosleep/run
@@ -0,0 +1,8 @@
+#!/bin/execlineb -P
+fdmove -c 2 1
+multisubstitute {
+ importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR
+ importas -i HOME HOME
+}
+s6-envdir ${XDG_RUNTIME_DIR}/wl_env
+swayidle -C ${HOME}/.config/swayidle/config-nosleep