mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-26 19:03:43 +02:00
14 lines
351 B
Bash
Executable file
14 lines
351 B
Bash
Executable file
#!/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" "/usr/bin/pipewire"
|
|
check_and_start "pipewire-pulse" "/usr/bin/pipewire-pulse"
|
|
check_and_start "wireplumber" "/usr/bin/wireplumber"
|