diff options
Diffstat (limited to 'dot_config/service')
| -rw-r--r-- | dot_config/service/dbus/symlink_check | 1 | ||||
| -rw-r--r-- | dot_config/service/dbus/symlink_run | 1 | ||||
| -rw-r--r-- | dot_config/service/pipewire/executable_check | 2 | ||||
| -rw-r--r-- | dot_config/service/pipewire/executable_run | 5 | ||||
| -rw-r--r-- | dot_config/service/pipewire/log/executable_run | 2 | ||||
| -rw-r--r-- | dot_config/service/turnstile-ready/executable_run | 10 |
6 files changed, 21 insertions, 0 deletions
diff --git a/dot_config/service/dbus/symlink_check b/dot_config/service/dbus/symlink_check new file mode 100644 index 0000000..1020d39 --- /dev/null +++ b/dot_config/service/dbus/symlink_check @@ -0,0 +1 @@ +/usr/share/examples/turnstile/dbus.check diff --git a/dot_config/service/dbus/symlink_run b/dot_config/service/dbus/symlink_run new file mode 100644 index 0000000..36e5203 --- /dev/null +++ b/dot_config/service/dbus/symlink_run @@ -0,0 +1 @@ +/usr/share/examples/turnstile/dbus.run diff --git a/dot_config/service/pipewire/executable_check b/dot_config/service/pipewire/executable_check new file mode 100644 index 0000000..6ad6783 --- /dev/null +++ b/dot_config/service/pipewire/executable_check @@ -0,0 +1,2 @@ +#!/bin/sh +wpctl status diff --git a/dot_config/service/pipewire/executable_run b/dot_config/service/pipewire/executable_run new file mode 100644 index 0000000..127af29 --- /dev/null +++ b/dot_config/service/pipewire/executable_run @@ -0,0 +1,5 @@ +#!/bin/sh +[ -r ./conf ] && . ./conf +SVDIR=~/.config/service sv check dbus >/dev/null || exit 1 +exec 2>&1 +exec chpst -e "$TURNSTILE_ENV_DIR" /usr/bin/pipewire diff --git a/dot_config/service/pipewire/log/executable_run b/dot_config/service/pipewire/log/executable_run new file mode 100644 index 0000000..4dba706 --- /dev/null +++ b/dot_config/service/pipewire/log/executable_run @@ -0,0 +1,2 @@ +#!/bin/sh +exec vlogger -t pipewire -p user diff --git a/dot_config/service/turnstile-ready/executable_run b/dot_config/service/turnstile-ready/executable_run new file mode 100644 index 0000000..ff8d3d1 --- /dev/null +++ b/dot_config/service/turnstile-ready/executable_run @@ -0,0 +1,10 @@ +#!/bin/sh +[ -r ./conf ] && . ./conf +[ -n "$core_services" ] && SVDIR=".." sv start $core_services +if [ -n "$core_services" ]; then + until SVDIR=".." sv check $core_services; do + : + done +fi +[ -p "/run/turnstiled/1000/ready" ] && printf "/home/tom/.config/service/turnstile-ready" > "/run/turnstiled/1000/ready" +exec pause |