kill pipewire before starting another one

This commit is contained in:
Cat /dev/Nulo 2021-10-02 11:59:21 -03:00
parent d3192d91fe
commit d81792f96c
2 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river 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" riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr"
~/.config/river/load-colors ~/.config/river/load-colors

4
.local/bin/pipewire-run Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
# pgrep -x pipewire && exit 0
killall pipewire
exec pipewire