I am currently using xmodmap for remapping keys like Caps Lock on my keyboard.

However, my keyboard has a bunch of keys on the top that are rarely used (Multimedia keyboard with buttons like Internet, Music, Next song, Mute etc)

I want to remap these keys to specific commands (Not keys).

For example: Pressing the Internet button should fire up my Firefox (/usr/bin/firefox)(which happens only in Windows for me) Also I need to map a specific button to xkill.

Is there a way to achieve this? Using: Fedora 14 on GNOME and KDE (both)

  • 1
    It is not a duplicate because all the other questions I checked on numerous sites and forums talk about remapping to a particular event, that is predefined. I want to remap the button to my choice of command. – Anuj More May 16 '11 at 5:27
  • 2
    @AnujMore: maybe, but it's still not suited for Stack Overflow. – alex May 16 '11 at 5:29

Try xbindkeys. It allows you to bind... er, more esoteric keys to arbitrary commands. As an example, on my laptop, I bound a script to toggle dual-monitor support to Fn-5 (IIRC--I no longer use this binding) using the following command:

(xbindkey '("m:0x0" "c:235") "$HOME/usr/bin/dual-monitor-setup")

I'm using its GUILE support for my config, though, so you'll probably have to modify it, if you want to use the simpler config format. Its documentation is rather good, so you shouldn't have much trouble figuring out how to make it do what you want to.

| improve this answer | |

It depends on the wm/de ( window manager/desktop environment ). You can rebind some keys in openbox in it`s XML file somewhere in a hidden file .config I think but you should google it. Other way is with


but better read some linux manuals on this sinc

| improve this answer | |

Since the question doesn't have many specifics, here is a good guide to follow. Along the way, you'll learn some of the terminology to ask a more specific question.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.