feat: pipewire autostart shell
This commit is contained in:
parent
4e24e459c1
commit
8cd9aa217c
2 changed files with 15 additions and 3 deletions
14
configs/hyprland/environments/pipewire.sh
Executable file
14
configs/hyprland/environments/pipewire.sh
Executable 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"
|
|
@ -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 &
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue