aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/hypr/hyprland.conf2
-rwxr-xr-x.local/bin/start-pipewire7
2 files changed, 8 insertions, 1 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf
index a53d5b6..2971d9d 100644
--- a/.config/hypr/hyprland.conf
+++ b/.config/hypr/hyprland.conf
@@ -6,7 +6,7 @@ $browser = firefox
$fileManager = foot lf
$menu = rofi -show drun
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
-exec-once = pipewire & pipewire-pulse & wireplumber
+exec-once = start-pipewire
exec-once = start-portal
exec-once = hyprpaper
exec-once = hyprslideshow /mnt/ssd/papes 60
diff --git a/.local/bin/start-pipewire b/.local/bin/start-pipewire
new file mode 100755
index 0000000..e883493
--- /dev/null
+++ b/.local/bin/start-pipewire
@@ -0,0 +1,7 @@
+#!/bin/sh
+killall pipewire
+killall pipewire-pulse
+killall wireplumber
+setsid -f pipewire
+setsid -f pipewire-pulse
+setsid -f wireplumber