noisybox.net

blogs tagged msiwind RSS feed Atom feed


Viewing entries 1 to 1 [1 matching entries]
  • |< NEWEST
  • << NEWER
  • OLDER >>
  • OLDEST >|

scream that sound

I recently acquired a certain netbook so that I could be frugal but still have the ability to hack while mobile. Of course, I have to run Debian...it's a curse...but it rules.

Surprisingly, things work altogether very very well. I still don't think I'm that savvy, but I've gotten things to play together quite nicely. I will create a real page and post my results/settings/findings soon....but I made a stupid simple hack tonight that I thought I'd share.

So I'm running Fluxbox again. It's clean, simple, and takes up very little screen real-estate. It's been a few years, but it's as elegant and non-intrusive as I remember it.

The default keys file for fluxbox has commands that grok asla (via alsactl) and are able to nudge the volume up/down based on the magical function modifier keys (like Fn+F7 or Fn+F8 on the Wind). That's all great...but at least with the sound apps I run (including Flash!), the defaults aren't enough because this "Front" control keeps stomping on things (eg. it apparently needs to be massaged after the Master is massaged). I wish this wasn't the case, it's stupid, I should complain...Whatever.

Scripts to the rescue.

For the MSI Wind, I made three scripts, one does muting, the other two do volume up/down. They look something like this:

#!/bin/bash
for control in Master Front ; do
        amixer sset ${control},0 1+
done
aplay ~/media/sounds/volume_change.wav

The 1+ indicates volume up, change to 1- for volume down.

And then in ~/.fluxbox/keys we can map things like:

176 :Exec ~/bin/volume_up
174 :Exec ~/bin/volume_down
160 :Exec ~/bin/volume_mute

What this provides is two things. First, when you press Fn+F7, for example, the Master and Front volume levels will both decrement. The Front is changed last, so that the actual volume output level is applied. Secondly, the 'aplay' line gives a little chime to audibly indicate the volume level...something akin to the sound that those $2000 Macintoshes make.

I found this bink sound on freesound and think it works quite well.

Until I can create a real page for my Wind setup, scream loud and enjoy the hack.