3

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)

2
  • 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, 2011 at 5:27
  • 2
    @AnujMore: maybe, but it's still not suited for Stack Overflow.
    – alex
    May 16, 2011 at 5:29

3 Answers 3

2

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.

2

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

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .