diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-10-15 13:22:36 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-10-15 13:22:36 -0400 |
| commit | 8309b395bf3ebd7073644058363cc19450a33e42 (patch) | |
| tree | e7447f03548d963f375d579a0c624148ffe9c321 /.config/s6-rc/river | |
| parent | 907660d5d80fa03b3bedc455a0bb38ef83cfd60f (diff) | |
s6: river and stuff
Diffstat (limited to '.config/s6-rc/river')
| -rw-r--r-- | .config/s6-rc/river/dependencies.d/dbus | 0 | ||||
| -rwxr-xr-x | .config/s6-rc/river/finish | 5 | ||||
| -rw-r--r-- | .config/s6-rc/river/notification-fd | 1 | ||||
| -rw-r--r-- | .config/s6-rc/river/producer-for | 1 | ||||
| -rwxr-xr-x | .config/s6-rc/river/run | 28 | ||||
| -rw-r--r-- | .config/s6-rc/river/type | 1 |
6 files changed, 36 insertions, 0 deletions
diff --git a/.config/s6-rc/river/dependencies.d/dbus b/.config/s6-rc/river/dependencies.d/dbus new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/s6-rc/river/dependencies.d/dbus diff --git a/.config/s6-rc/river/finish b/.config/s6-rc/river/finish new file mode 100755 index 0000000..4c78186 --- /dev/null +++ b/.config/s6-rc/river/finish @@ -0,0 +1,5 @@ +#!/bin/execlineb -S2 +importas -i XDG_RUNTIME_DIR XDG_RUNTIME_DIR +foreground { s6-rc -l ${XDG_RUNTIME_DIR}/s6-rc -bDa change } +s6-svscanctl -t ${XDG_RUNTIME_DIR}/service +exit 125 diff --git a/.config/s6-rc/river/notification-fd b/.config/s6-rc/river/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/.config/s6-rc/river/notification-fd @@ -0,0 +1 @@ +3 diff --git a/.config/s6-rc/river/producer-for b/.config/s6-rc/river/producer-for new file mode 100644 index 0000000..051e7e4 --- /dev/null +++ b/.config/s6-rc/river/producer-for @@ -0,0 +1 @@ +river-log 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 diff --git a/.config/s6-rc/river/type b/.config/s6-rc/river/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/.config/s6-rc/river/type @@ -0,0 +1 @@ +longrun |
