Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (14 sloc) 342 Bytes
#!/bin/sh
# call amixer for all cards in ALSA
# (I am calling this from XFCE keyboard shortcuts to set volume globally)
#
# Usage examples:
# ./allmixer.sh sset PCM 10%+
# ./allmixer.sh sset PCM 10%-
export LANG=C
for i in {0..99}; do
cmd="amixer -c$i $@"
echo === $cmd ===
$cmd 2>&1 | grep 'Invalid card number' && break
done;
echo DONE
Something went wrong with that request. Please try again.