runit: configure services with turnstile
enable dbus (user-session), pipewire, pipewire-pulse, syncthing
This commit is contained in:
parent
2ed57158c1
commit
07786e22f9
5 changed files with 28 additions and 0 deletions
11
dot_config/service/dbus/executable_run
Normal file
11
dot_config/service/dbus/executable_run
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -r ./conf ] && . ./conf
|
||||||
|
|
||||||
|
: "${DBUS_SESSION_BUS_ADDRESS:=unix:path=/run/user/$(id -u)/bus}"
|
||||||
|
|
||||||
|
if [ -d "$TURNSTILE_ENV_DIR" ]; then
|
||||||
|
echo "$DBUS_SESSION_BUS_ADDRESS" > "$TURNSTILE_ENV_DIR"/DBUS_SESSION_BUS_ADDRESS
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec chpst -e "$TURNSTILE_ENV_DIR" dbus-daemon --session --nofork --nopidfile --address="$DBUS_SESSION_BUS_ADDRESS" $OPTS
|
3
dot_config/service/pipewire-pulse/executable_run
Normal file
3
dot_config/service/pipewire-pulse/executable_run
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec 2>&1
|
||||||
|
exec pipewire-pulse
|
3
dot_config/service/pipewire/executable_run
Normal file
3
dot_config/service/pipewire/executable_run
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec 2>&1
|
||||||
|
exec pipewire
|
5
dot_config/service/syncthing/executable_run
Normal file
5
dot_config/service/syncthing/executable_run
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
|
||||||
|
exec /usr/bin/syncthing --logflags 0 --no-restart --home="$HOME/.config/syncthing"
|
6
dot_config/service/turnstile-ready/conf
Normal file
6
dot_config/service/turnstile-ready/conf
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
core_services="
|
||||||
|
dbus
|
||||||
|
syncthing
|
||||||
|
pipewire
|
||||||
|
pipewire-pulse
|
||||||
|
"
|
Loading…
Add table
Reference in a new issue