Wrote script to clean up LaTeX build files

Used Shellcheck to change all my scripts to bash and lint them. Exported my
scripts to $PATH. Fixed my liked Arch packages.
This commit is contained in:
2018-12-05 10:02:23 -05:00
parent 0cad253f9d
commit 80ea8653c3
15 changed files with 149 additions and 168 deletions

18
scripts/change-sink Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
#Device name variable
if [ "$1" = "dac" ]; then
devicename="alsa_output.usb-FiiO_DigiHug_USB_Audio-01.analog-stereo"
elif [ "$1" = "line-out" ]; then
devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
fi
echo "$devicename"
#change the default sink
pacmd "set-default-sink $devicename"
#move all inputs to the new sink
for app in $(pacmd list-sink-inputs | sed -n -e 's/index:[[:space:]]\([[:digit:]]\)/\1/p');
do
pacmd "move-sink-input $app $devicename"
done