[linux-audio-user] Re: best window manager for making music
job17and9 at sbcglobal.net
Sun Mar 5 18:09:50 EST 2006
Thanks again, lau. You've help me sort through the bazillion options out
there and i'm now bedazzling myself with the glamor of fluxbox... so
fresh, yet so clean.
For a while i was frustrated by the absence of a good dockapp alsa
mixer, then i discovered the beauty of the .fluxbox/keys file. Mod4 +,
rear speakers louder. Mod4 -, rear speakers quieter. sweet.
amixer provides no mute toggle for rear out of an emu10k1. so i wrote
this goofy script and bound it to Mod4 m.
# Check if the Wave Surround level is already 0
VOL=`amixer sget 'Wave Surround' | grep 'Front Left:' | cut --delimiter=' ' --fields=6`
if [ $VOL -gt 0 ]; then
#store the current wave surround volume in VOL
LASTVOL=`amixer sget 'Wave Surround' | grep 'Front Left:' | cut --delimiter=' ' --fields=6`
#turn the sound all the way down.
amixer sset 'Wave Surround' 0
echo $LASTVOL > ~/.lastvol
amixer sset 'Wave Surround' `cat ~/.lastvol`
is this like a really dumb way to add a mute toggle? This is like my
first real bash script, so any suggestions are welcome. Here i'll get
the ball rolling: i should learn to use sed or awk so i don't have to
pipe grep and cut together.
well, thanks to ya'll my computer is looking and sounding sweeter than
ever and it's oh so customized.
More information about the Linux-audio-user