diff --git a/.config/fish/functions/toglpulse.fish b/.config/fish/functions/toglpulse.fish new file mode 100644 index 0000000..931abf9 --- /dev/null +++ b/.config/fish/functions/toglpulse.fish @@ -0,0 +1,12 @@ +function toglpulse + if test -e ~/.config/pulse/client.conf + rm -rf ~/.config/pulse/client.conf + ssh venator.lan systemctl --user restart pipewire-pulse; or ssh venator.lan nssm restart pulseaudio + rebar + else + pkill -fi easyeffects; or pkill -fi -9 easyeffects + echo "default-server = venator.lan" > ~/.config/pulse/client.conf + systemctl --user stop pipewire pipewire-pulse wireplumber + rebar + end +end diff --git a/scripts/toglpulse b/scripts/toglpulse new file mode 100755 index 0000000..82ff5d6 --- /dev/null +++ b/scripts/toglpulse @@ -0,0 +1,2 @@ +#!/usr/bin/env fish +toglpulse