<p>I have a Microsoft keyboard with a series of non-standard buttons such as "Mail", "Search" , "Web/Home" etc.</p>

<p>It would be nice to be able to bind these keys so they execute arbitrary programs.</p>

<p>Does anybody know how to do this in Debian Etch?</p>

[{'answer_id': 6821, 'author': 'HoboBen', 'author_id': 840, 'author_profile': 'https://Stackoverflow.com/users/840', 'pm_score': 3, 'selected': True, 'text': '<p>I can\'t say for certain because I\'m not using Debian but if you\'re using Gnome the easiest way is to run gnome-keybinding-properties (System > Preferences > Keyboard Shortcuts)</p>\n\n<p>Instead of typing a shortcut such as <kbd>Ctrl</kbd>+<kbd>M</kbd>, hit the button on your keyboard.</p>\n\n<p>If you would prefer to do this via command line or with a different desktop environment, this may help: <a href="http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-14.html" rel="nofollow noreferrer">Unusual keys and keyboards</a></p>\n'}, {'answer_id': 12282, 'author': 'Matt McMinn', 'author_id': 1322, 'author_profile': 'https://Stackoverflow.com/users/1322', 'pm_score': 0, 'selected': False, 'text': '<p>I used Gizmo Daemon for my PowerMate under Debian - it supports fancy keyboard keys as well (although I haven\'t tried it for those keys).  Hacking on gizmod to get it to do what I wanted was pretty easy.</p>\n\n<p><a href="http://gizmod.sourceforge.net/" rel="nofollow noreferrer">Gizmo Daemon</a></p>\n'}, {'answer_id': 12589, 'author': 'jdd', 'author_id': 242853, 'author_profile': 'https://Stackoverflow.com/users/242853', 'pm_score': 0, 'selected': False, 'text': '<p>There\'s a few different ways to do so, the easiest generally being <a href="http://keytouch.sourceforge.net/" rel="nofollow noreferrer">keytouch</a>, which is probably available in the Debian repositories. The user manual is <a href="http://keytouch.sourceforge.net/user_manual/user_manual.html" rel="nofollow noreferrer">here</a>. There is a chance that your keyboard won\'t work with it though.</p>\n'}, {'answer_id': 20687, 'author': 'Magus', 'author_id': 2188, 'author_profile': 'https://Stackoverflow.com/users/2188', 'pm_score': 1, 'selected': False, 'text': '<p>Running Debian, I had the same issue. What I did is run xev and see what keycode those keys return. Microsoft likes to break standards a little, so some of the multimedia keys just won\'t work. But the ones that do will return a keycode. Then write a script with xmodmap to map those keys properly. </p>\n\n<p>The <a href="http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys" rel="nofollow noreferrer" title="HOWTO Use Multimedia Keys">Gentoo Wiki</a> has excellent documentation on how to do these things.</p>\n\n<p>I put my xmodmap script in ~/.kde/Autostart/ because I use kde, but you could just as easily put it in your home folder and have your .bashrc or .profile source it. </p>\n\n<p>Once you\'ve mapped the keycodes, you can assign those keys to specific actions in your desktop environment.</p>\n'}, {'answer_id': 688696, 'author': 'Roch', 'author_id': 83475, 'author_profile': 'https://Stackoverflow.com/users/83475', 'pm_score': 0, 'selected': False, 'text': '<p>If you want to do it manualy you can edit ~/.xmodmap\nand use xmodmap ~/.xmodmap to apply the modifications</p>\n'}]
['https://Stackoverflow.com/questions/6812', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/854/']