better getopts
[mirrors/Programs.git] / bash / allmixer.sh
CommitLineData
01d8dabc
H
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
9export LANG=C
10for i in {0..99}; do
11 cmd="amixer -c$i $@"
12 echo === $cmd ===
13 $cmd 2>&1 | grep 'Invalid card number' && break
14done;
15echo DONE
This page took 0.096547 seconds and 4 git commands to generate.