Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 16 lines (14 sloc) 0.342 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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.