File: alsamixerguis

package info (click to toggle)
fvwm-crystal 3.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 21,700 kB
  • ctags: 1,494
  • sloc: sh: 3,265; cs: 1,335; python: 875; makefile: 214
file content (25 lines) | stat: -rwxr-xr-x 1,124 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# Simple script that launch several alsamixer instances.
# Usefull when it is more than one sound card into your system.
# Written by Dominique Michel for the fvwm-crystal project.

# It has the same name than a similar script that come with bmpdj, but it run alsamiser
# instead of alsamixergui (this last software hang on both of my boxes).

# It is very simple to adjust to your setting. It is just to put one line per sound card.
# It use aterm here because it give me smaller windows than the other terminals in my system.
# Other terminals will work too.

# Don't change the title or it wukk not work with Show/hide mixer in Fvwm-Crystal

#aterm -title "ALSA Mixer" -e alsamixer -c 0 &		# Default sound card
#aterm -title "ALSA Mixer" -e alsamixer -c 1 &		# Second sound card
# xterm -title "ALSA Mixer" -e alsamixer -c 2 &	# not used
#aterm -title "ALSA Mixer" -e alsamixer -c 3 -V captue &	# Capture view for webcam

# An alternative is to use the following:
for i in $(ls /dev/mixer* | grep [0-9]) ; do
	card=$(echo $i | sed -e 's:/dev/mixer::')
	aterm -title "ALSA Mixer" -e alsamixer -c ${card} &
done