start creating user services
This commit is contained in:
parent
668e8d9234
commit
530a03595c
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
|
||||
sv check session-dbus >/dev/null || exit 1
|
||||
|
||||
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
exec pipewire -c pipewire-pulse.conf
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
|
||||
sv check session-dbus >/dev/null || exit 1
|
||||
|
||||
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
exec pipewire
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
|
||||
sv check session-dbus >/dev/null || exit 1
|
||||
|
||||
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
exec playerctld
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
|
||||
exec 3<> "$HOME/.local/state/dbus_session_address"
|
||||
|
||||
exec dbus-daemon --session --nofork --nopidfile --print-address=3
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
exec 2>&1
|
||||
|
||||
sv check session-dbus >/dev/null || exit 1
|
||||
|
||||
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
|
||||
export DBUS_SESSION_BUS_ADDRESS
|
||||
|
||||
exec wireplumber
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
export USER="<USERNAME>"
|
||||
export HOME="/home/<USERNAME>"
|
||||
|
||||
groups="$(id -Gn "$USER" | tr ' ' ':')"
|
||||
svdir="$HOME/.local/sv/"
|
||||
|
||||
exec chpst -u "$USER:$groups" runsvdir "$svdir"
|
Loading…
Reference in New Issue