services: Move pipewire into user service

Will be managed by runit service manager under voidlinux.
This commit is contained in:
Marty Oehme 2025-02-24 16:59:02 +01:00
parent 4f18b548f4
commit e08f88db9c
Signed by: Marty
GPG key ID: 4E535BC19C61886E
4 changed files with 12 additions and 3 deletions
desktop/.config/river
services/sv/pipewire
control
log
run

View file

@ -348,9 +348,6 @@ should_start swayidle && riverctl spawn "swayidle \
before-sleep \"pidof waylock || lockscreen\" &"
should_start wl-paste && riverctl spawn "wl-paste -t text --watch clipman store"
should_start pipewire && riverctl spawn pipewire
# bash ~/.config/bin/gtktheme # setting our gtk variables
# killall polkit-gnome-authentication-agent-1
# /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &

3
services/sv/pipewire/control/t Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
# https://github.com/classabbyamp/dotfiles/commit/98012e177f8df0731eb46dd236596400b9894a4d
[ -r supervise/pid ] && kill -TERM -$(cat supervise/pid)

3
services/sv/pipewire/log/run Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env sh
exec vlogger -t pipewire -p daemon

6
services/sv/pipewire/run Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
[ -r ./conf ] && . ./conf
exec 2>&1
exec chpst -e "$TURNSTILE_ENV_DIR" pipewire "$OPTS"