mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-06-19 20:55:34 +00:00
Add toglpulse script
This commit is contained in:
parent
5e728a1a86
commit
d78170562d
12
.config/fish/functions/toglpulse.fish
Normal file
12
.config/fish/functions/toglpulse.fish
Normal file
|
@ -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
|
2
scripts/toglpulse
Executable file
2
scripts/toglpulse
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
toglpulse
|
Loading…
Reference in a new issue