Fix
[mirrors/Programs.git] / bash / allmixer.sh
1 #!/bin/sh
2 # call amixer for all cards in ALSA
3 # (I am calling this from XFCE keyboard shortcuts to set volume globally)
4 #
5 # Usage examples:
6 # ./allmixer.sh sset PCM 10%+
7 # ./allmixer.sh sset PCM 10%-
8
9 export LANG=C
10 for i in {0..99}; do
11 cmd="amixer -c$i $@"
12 echo === $cmd ===
13 $cmd 2>&1 | grep 'Invalid card number' && break
14 done;
15 echo DONE
This page took 0.259296 seconds and 4 git commands to generate.