5

I want to assign my script to special key on my keyboard. xmodmap recognize this key as XF86AudioMute, but I want to execute my script when it pressed. How to do it?

My window manager is Window Maker, but I am looking for a solution independent of wm.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Nips
  • 245
  • 3
  • 7

2 Answers2

2

For years I have used xbindkeys with WindowMaker and other window managers - it'll do everything you need. Here's an example blog post with more details.

user53797
  • 21
  • 3
0

You can find a detailed guide to add new keyboard shortcut over there in "Adding a Custom Keyboard Shortcut" section.

Quote with a quick description:

Most "custom" shortcuts are used to launch specific applications, so I will describe the process with that goal in mind. To add your own keyboard shortcut for an application, go to the "Applications Menu Definition" panel in the Preferences app. Select the application item in the menu for which you want to create a shortcut, then use the "capture" button to capture the keystrokes you want to assign to that item.

rush
  • 27,055
  • 7
  • 87
  • 112
  • 1
    Yes, but this shortcut is visible in menu - but I want to add shortcut higher - independently of wm – Nips Jul 30 '13 at 18:55