dotfiles/.config/fish/functions/toglpulse.fish

15 lines
478 B
Fish
Raw Normal View History

2022-06-30 20:49:15 +00:00
function toglpulse
killall slack Discord DiscordCanary
2022-06-30 20:49:15 +00:00
if test -e ~/.config/pulse/client.conf
rm -rf ~/.config/pulse/client.conf
systemctl --user start pipewire.socket
2022-06-30 20:49:15 +00:00
rebar
else
killall easyeffects pavucontrol; or killall -9 easyeffects pavucontrol
echo "default-server = 192.168.1.155" >~/.config/pulse/client.conf
systemctl --user stop pipewire.socket pipewire pipewire-pulse wireplumber
2022-06-30 20:49:15 +00:00
rebar
end
end