feat: pipewire autostart shell

This commit is contained in:
hesam-init 2024-03-17 17:59:42 +03:30
parent 4e24e459c1
commit 8cd9aa217c
2 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
check_and_start() {
if ! pgrep -x "$1" >/dev/null; then
echo "Starting $1..."
sleep 1 && $2 &
else
echo "$1 is already running."
fi
}
check_and_start "pipewire" "pipewire"
check_and_start "pipewire-pulse" "/usr/bin/pipewire-pulse"
check_and_start "wireplumber" "/usr/bin/wireplumber"

View file

@ -4,10 +4,8 @@
# background services :
exec-once = dbus-update-activation-environment --all &
exec-once = ~/.config/environments/pipewire.sh &
exec-once = ~/.config/hypr/scripts/keyring-launch.sh &
exec-once = sleep 1 && pipewire &
exec-once = sleep 1 && /usr/bin/pipewire-pulse &
exec-once = sleep 1 && /usr/bin/wireplumber &
exec-once = wl-paste --watch cliphist store &
exec-once = avizo-service &