1
0
Fork 0

work on services

This commit is contained in:
Luca Bilke 2023-12-21 10:17:55 +01:00
parent f34374d013
commit 0df11439ac
10 changed files with 14 additions and 7 deletions

View File

@ -3,7 +3,7 @@ exec 2>&1
sv check session-dbus >/dev/null || exit 1
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_bus_address)"
export DBUS_SESSION_BUS_ADDRESS
exec pipewire -c pipewire-pulse.conf

View File

@ -3,7 +3,7 @@ exec 2>&1
sv check session-dbus >/dev/null || exit 1
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_bus_address)"
export DBUS_SESSION_BUS_ADDRESS
exec pipewire

View File

@ -3,7 +3,7 @@ exec 2>&1
sv check session-dbus >/dev/null || exit 1
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_bus_address)"
export DBUS_SESSION_BUS_ADDRESS
exec playerctld

2
.local/sv/session-dbus/check Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec dbus-send --bus="$(cat "$HOME"/.local/state/dbus_session_bus_address)" / org.freedesktop.DBus.Peer.Ping >/dev/null 2>&1

View File

@ -1,6 +1,5 @@
#!/bin/sh
exec 2>&1
exec 3<> "$HOME/.local/state/dbus_session_address"
exec 3<> "$HOME/.local/state/dbus_session_bus_address"
exec dbus-daemon --session --nofork --nopidfile --print-address=3

2
.local/sv/syncthing/check Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec syncthing cli show system >/dev/null 2>&1

4
.local/sv/syncthing/run Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
exec syncthing --no-browser

View File

@ -3,7 +3,7 @@ exec 2>&1
sv check session-dbus >/dev/null || exit 1
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_address)"
DBUS_SESSION_BUS_ADDRESS="$(cat "$HOME"/.local/state/dbus_session_bus_address)"
export DBUS_SESSION_BUS_ADDRESS
exec wireplumber

View File

@ -1,6 +1,6 @@
README\.md
TODO\.md
runsvdir-<USERNAME>
runsvdir-USER
\.git
\.gitignore
\.gitmodules