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
|
@ -1,4 +1,8 @@
|
||||||
function mkfish --description 'Make an executable fish script'
|
function mkfish --description 'Make an executable fish script'
|
||||||
|
if test (count $argv) -eq 0
|
||||||
|
echo Minimum one argument.
|
||||||
|
return 1
|
||||||
|
end
|
||||||
# each arg is a script to create
|
# each arg is a script to create
|
||||||
for name in $argv
|
for name in $argv
|
||||||
printf '#!/usr/bin/env fish'\n\n"echo $name" >"$name.fish"
|
printf '#!/usr/bin/env fish'\n\n"echo $name" >"$name.fish"
|
||||||
|
|
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