LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   XMMS Global KB Shortcuts... Logitech Internet Navigator USB Keyboard Buttons..... (http://www.linuxquestions.org/questions/linux-software-2/xmms-global-kb-shortcuts-logitech-internet-navigator-usb-keyboard-buttons-311311/)

Nalorin 04-09-2005 01:52 AM

XMMS Global KB Shortcuts... Logitech Internet Navigator USB Keyboard Buttons.....
 
Hey, all...

I have a logitech Internet Navigator Keyboard (it has the media buttons ~play,ff,rw,stop,vup,vdown,mute and media (which in windows pops up winamp)).

Now, what I want, is to be able to set up my system (Listed in my signature, below) so that the Logitech keyboard buttons will work with winamp, and also so that I can use the other buttons as mappings of my own desire... Can anyone help, please?

They keyboard layout is as follows:
Standard 104-key US layout + the following:
F-Lock - (to lock the f-keys, which double as other keys.
No F-Lock on F-keys:
Code:

F1: New
F2: Reply
F3: Forward
F4: Send
F5: Undo
F6: Redo
F7: Print
F8: Save
F9: My Computer
F10: My Documents
F11: My Pictures
F12: My Music

(obviously setup for windows)

Across the top from left to right (not including media buttons):
User, F-Lock, E-Mail, Messenger/SMS, Webcam (which I donīt have) <<<MEDIA BUTTONS>>> iTouch, Search, My Home, Shopping, Favorites.

<<< Media Keys >>>
Top Left, to Top Right, Bottom Left to Bottom Right:
Media, Vup, Vdown, Mute // Prev, Next, Play/Pause, Stop.

Left Side of Alpha Keys (top to bottom):
MouseWheel
Back Arrow
Go Button

Basically what I want is this:
XMMS Global Hotkeys:
Previous: Prev (or CTRL+ALT+Shift+Z)
Play/Pause: Play/Pause (or CTRL+ALT+Shift+X)
Stop: Stop (or CTRL+ALT+Shift+C)
Next: Next (or CTRL+ALT+Shift+V)
Volume Up: Vup (or CTRL+ALT+Shift+up)
Volume Down: Vdown (or CTRL+ALT+Shift+down)
Fast-Forward: CTRL+Next (or CTRL+ALT+Shift+right)
Rewind: CTRL+Prev (or CTRL+ALT+Shift+left)
Jump to File: CTRL+Media (or CTRL+ALT+Shift+J)

What I have working so far:
XMMS Plays files fine
Keyboard works fine as a 104-Key STD US Keyboard

Brian1 04-09-2005 07:05 PM

What you need to do is run the program ' xev '. Then as you press the key it will display the keycode=***. Then once you have the keycodes for each button then create a .Xmodmap under you home directory like below. Search the net for more XF86***** values.

contents ~/.Xmodmap
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 162 = XF86AudioPause


Also check into xbindkeys.

If using KDE then in the control center there is a section called khotkeys that can be used to map keys in KDE.

Brian1
" Google the Linux way @ http://www.google.com/linux "

mala fide 04-12-2005 07:53 PM

I copied this to my ~/.xmodmap

Quote:

keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 162 = XF86AudioPause
and added
Code:

xmodmap $HOME/.xmodmap
to /etc/X11/xinit/xinitrc
where it says "add your own lines here"

No effect at least when trying to use amaroK
And yes, I am a :newbie: as if it wasn't clear. :)

What's wrong?


All times are GMT -5. The time now is 04:04 AM.