From d81792f96c787b7a249880377f8a6770d28a8e98 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 2 Oct 2021 11:59:21 -0300 Subject: [PATCH] kill pipewire before starting another one --- .config/river/init | 2 +- .local/bin/pipewire-run | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 .local/bin/pipewire-run diff --git a/.config/river/init b/.config/river/init index 5b8ca47..aac8315 100755 --- a/.config/river/init +++ b/.config/river/init @@ -1,7 +1,7 @@ #!/bin/sh dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river -riverctl spawn "pipewire" +riverctl spawn "pipewire-run" riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr" ~/.config/river/load-colors diff --git a/.local/bin/pipewire-run b/.local/bin/pipewire-run new file mode 100755 index 0000000..7a079c1 --- /dev/null +++ b/.local/bin/pipewire-run @@ -0,0 +1,4 @@ +#!/bin/sh +# pgrep -x pipewire && exit 0 +killall pipewire +exec pipewire