| 1 | #!/bin/sh |
| 2 | |
| 3 | # Simple script that launch several alsamixer instances. |
| 4 | # Usefull when it is more than one sound card into your system. |
| 5 | # Written by Dominique Michel for the fvwm-crystal project. |
| 6 | |
| 7 | # It has the same name than a similar script that come with bmpdj, but it run alsamiser |
| 8 | # instead of alsamixergui (this last software hang on both of my boxes). |
| 9 | |
| 10 | # It is very simple to adjust to your setting. It is just to put one line per sound card. |
| 11 | # It use aterm here because it give me smaller windows than the other terminals in my system. |
| 12 | # Other terminals will work too. |
| 13 | |
| 14 | # Don't change the title or it wukk not work with Show/hide mixer in Fvwm-Crystal |
| 15 | |
| 16 | #aterm -title "ALSA Mixer" -e alsamixer -c 0 & # Default sound card |
| 17 | #aterm -title "ALSA Mixer" -e alsamixer -c 1 & # Second sound card |
| 18 | # xterm -title "ALSA Mixer" -e alsamixer -c 2 & # not used |
| 19 | #aterm -title "ALSA Mixer" -e alsamixer -c 3 -V captue & # Capture view for webcam |
| 20 | |
| 21 | # An alternative is to use the following: |
| 22 | for i in $(ls /dev/mixer* | grep [0-9]) ; do |
| 23 | card=$(echo $i | sed -e 's:/dev/mixer::') |
| 24 | aterm -title "ALSA Mixer" -e alsamixer -c ${card} & |
| 25 | done |