18/05/2006
Activating Mail/Home/Search buttons in fluxbox
I am an owner of a Microsoft Basic Keyboard Black. Yes, I know it’s not the best…but it’s pretty ok for it’s money. As soon as I find some decent amount of money I am going to get this beauty: Cherry CyMotion Master Linux 🙂
Anyway…as you can see my MS keyboard has three buttons in the top…Mail, Web/Home and Search. I was looking forward to using them in linux too, so I started searching. Gentoo Wiki was again the source for what I was looking…
So check this out: http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys
After setting up .xmodmap, it was time to make fluxbox use them. And here’s my part of .fluxboys/keys referring to those 3 “new” keys.
None XF86Mail :ExecCommand mrxvt --loginShell
None XF86HomePage :ExecCommand /usr/bin/firefox -P test
None XF86Search :ExecCommand nedit
Mod4 XF86Mail :ExecCommand xmms --rew
Mod4 XF86HomePage :ExecCommand xmms --play-pause
Mod4 XF86Search :ExecCommand xmms --fwd
Mod1 XF86Mail :ExecCommand amixer sset PCM 2-
Mod1 XF86HomePage :ExecCommand amixer sset "Audigy Analog/Digital Output Jack" toggle
Mod1 XF86Search :ExecCommand amixer sset PCM 2+
I am now able to lauch applications, jump forward and backward tunes in xmms and control the volume of my Audigy2.
Unfortunately I couldn’t find a switch to mute Audigy2 and the only “hack”I cound find was to toggle the digital output switch. Since I don’t have digital and analog output together, if I change the switch the sound get muted.
Have fun with your keys 🙂
Filed by kargig at 16:46 under Linux
No Comments | 9,138 views