Talk is cheap, show me the code
Being minimalistic, fluxbox is already uber cool. Special key for turning volume up/down or toggle can be mapped in .fluxbox/keys. but there’s no visualization system yet. Don’t wrry be happy, there’re many bash script out there. All we need is a cli-fied osd, and off we go.
None 176 :exec osdctl -b Volume,`amixer set Master 3%+| grep Left: | awk ‘{gsub(/\[/," "); gsub(/%\]/, ” “); print $5}’`None 174 :exec osdctl -b Volume,`amixer set Master 3%-| grep Left: | awk ‘{gsub(/\[/," "); gsub(/%\]/, ” “); print $5}’`!None 174 :exec amixer -q set Master 3%-None 160 :exec osdctl -s “Sound: `amixer set Master toggle| grep Left: | awk ‘{gsub(/\[/," "); gsub(/\]/, ” “); print $7}’`”
You can found osdctl (osdsh package) here. You need to fire up osdsh before you can sue osdctl. I guess we can put it in our startup file.
Powered by ScribeFire.
Sphere: Related Content
This section gives me most headache. But experience told me that this blog mostly contains personal ramblings related to daily life, open source, and web 2.0. Recently, it turns out to be an idea-box where you can found ideas you can execute in your new startup ;). My ideas and opinions are not bullet proof and never intended to be one way stream. Kindly participate to improve your and my perspective regarding any particular post. Welcome aboard and enjoy your stay
Leave a reply