From d78170562db2968d6b7dec4bd7b0856115947649 Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 30 Jun 2022 16:49:15 -0400 Subject: [PATCH] Add toglpulse script --- .config/fish/functions/toglpulse.fish | 12 ++++++++++++ scripts/toglpulse | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 .config/fish/functions/toglpulse.fish create mode 100755 scripts/toglpulse 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