The roller knob does a fast forward & rewind 5 seconds. Nice, but not
very useful. With only 4 buttons (roller forward/back, ok, cancel), I wanted
to re-map these keys whenever I run xmms. No problem.
Make the following file:
/etc/X11/kb/xmms.xmodmap
---------------
keycode 131 = X
keycode 132 = C
keycode 133 = B
keycode 134 = Z
---------------
Create an xmms wrapper file:
/usr/bin/xmmsWrapper.sh
---------------
#!/bin/bash
xmodmap /etc/X11/kb/xmms.xmodmap
xmms
xmodmap /etc/X11/kb/corgi.xmodmap
---------------
Change the launcher to use the wrapper file.
Edit:
/usr/share/applications/xmms.desktop
Change line:
Exec=xmms
to
Exec=xmmsWrapper.sh
Restart X (Is there a better way to tell matchbox to re-read?)
That's it.
Now, when you run xmms, you can turn off the screen and
close it. Now they keys are mapped to:
OK = Play
Cancel = Pause
Dial Forward = Next song
Dial Backward = Prev song
Note: the xmms app must be "active" when you close the Z
This is the default after you launch it, but if you are messing
around with something else, be sure to click on xmms before
closing the lid.
Have fun.
-John
C760 - My $700 mp3 player!
