move services to .config/service, managed by turnstile

This commit is contained in:
frosty 2024-05-29 13:28:54 +00:00
parent 2b0f15f048
commit e57e1c5403
28 changed files with 33 additions and 22 deletions

11
runit/.config/service/dbus/run Executable file
View 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

View file

@ -0,0 +1 @@
994

View file

@ -0,0 +1 @@
run

Binary file not shown.

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec chpst -e "$TURNSTILE_ENV_DIR" dunst

View file

@ -0,0 +1 @@
1052

View file

@ -0,0 +1 @@
run

Binary file not shown.

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec chpst -e "$TURNSTILE_ENV_DIR" picom

View file

@ -0,0 +1 @@
2671

View file

@ -0,0 +1 @@
run

Binary file not shown.

View file

@ -0,0 +1,2 @@
#!/bin/sh
[ -r supervise/pid ] && kill -TERM -$(cat supervise/pid)

View file

@ -0,0 +1,4 @@
#!/bin/sh
SVDIR=".." sv start dbus || exit 1
exec chpst -e "$TURNSTILE_ENV_DIR" pipewire

View file

@ -0,0 +1 @@
995

View file

@ -0,0 +1 @@
run

Binary file not shown.

View file

@ -0,0 +1 @@
core_services="dbus"

View file

@ -0,0 +1 @@
down

Binary file not shown.

View file

@ -1,3 +0,0 @@
#!/bin/sh
exec dunst 2>&1

View file

@ -1,3 +0,0 @@
#!/bin/sh
exec picom 2>&1

View file

@ -1,5 +0,0 @@
#!/bin/sh
sv check "$HOME/.runit/sv/wireplumber" >/dev/null || exit 1
exec pipewire-pulse 2>&1

View file

@ -1,3 +0,0 @@
#!/bin/sh
exec pipewire 2>&1

View file

@ -1,3 +0,0 @@
#!/bin/sh
exec sxhkd 2>&1

View file

@ -1,5 +0,0 @@
#!/bin/sh
sv check "$HOME/.runit/sv/pipewire" >/dev/null || exit 1
exec wireplumber 2>&1