AutoYADM commit: 2025-04-25 16:15:06
This commit is contained in:
parent
4a6f414d10
commit
87ae9f44dd
2 changed files with 15 additions and 0 deletions
11
.config/waybar/scripts/toggle-sink.fish
Executable file
11
.config/waybar/scripts/toggle-sink.fish
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set -l sinks alsa_output.usb-FIIO_FiiO_USB_DAC-E10-01.analog-stereo alsa_output.usb-Burr-Brown_from_TI_USB_Audio_DAC-00.analog-stereo
|
||||
set -l current (pactl get-default-sink)
|
||||
|
||||
for i in sinks
|
||||
if test "$i" != "$current"
|
||||
pactl set-default-sink "$i"
|
||||
return 0
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue