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
#mute
#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
else
#unmute
amixer sset 'Wave Surround' `cat ~/.lastvol`
fi
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.
God Bless,
Brian