Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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)

share|improve this question

migrated from stackoverflow.com May 16 '11 at 5:34

This question came from our site for professional and enthusiast programmers.

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

3 Answers 3

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.

share|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

setxkbmap

but better read some linux manuals on this sinc

share|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.

http://en.gentoo-wiki.com/wiki/Multimedia_Keys

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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