summaryrefslogtreecommitdiff
path: root/.config/s6-rc/river/run
diff options
context:
space:
mode:
Diffstat (limited to '.config/s6-rc/river/run')
-rwxr-xr-x.config/s6-rc/river/run28
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/s6-rc/river/run b/.config/s6-rc/river/run
new file mode 100755
index 0000000..de4fd8a
--- /dev/null
+++ b/.config/s6-rc/river/run
@@ -0,0 +1,28 @@
+#!/bin/execlineb -P
+fdmove -c 2 1
+multisubstitute {
+ importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR
+ importas -i HOME HOME
+}
+if { mkdir -p ${XDG_RUNTIME_DIR}/wl_env }
+if {
+ forx -E var {
+ XDG_SESSION_TYPE=wayland
+ XDG_SESSION_DESKTOP=wlroots
+ XDG_CURRENT_DESKTOP=wlroots
+ MOZ_ENABLE_WAYLAND=1
+ QT_QPA_PLATFORM=wayland
+ SDL_VIDEODRIVER=wayland
+ _JAVA_AWT_WM_NONREPARENTING=1
+ }
+ multidefine -d= ${var} { key val }
+ redirfd -w 1 ${XDG_RUNTIME_DIR}/wl_env/${key}
+ heredoc 0 ${val} cat
+}
+s6-envdir ${XDG_RUNTIME_DIR}/wl_env
+if { mkdir -p ./data }
+if { rm -f ./data/ready }
+if { mkfifo ./data/ready }
+background { redirfd -r 0 ./data/ready fdmove 1 3 cat }
+cd ${HOME}
+river