Differences between revisions 4 and 5
Revision 4 as of 2008-02-04 21:51:49
Size: 1794
Comment: work in progress
Revision 5 as of 2008-02-04 21:55:31
Size: 1820
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
To day, lot of keyboard have additional keys. Here, we show how to use them. This article is based on [http://www.lea-linux.org/cached/index/Hardware-hard_autres-clavier_multimedia.html Léa Linux How-To] To day, lot of keyboard have additional keys. Here, we show how to use them. This article is based on this very VERY good [http://www.lea-linux.org/cached/index/Hardware-hard_autres-clavier_multimedia.html Léa Linux How-To]
Line 22: Line 22:
Here we'll use {{{xmodmap}}} to modify keymaps and insert our multimedia keys. Here we're going use {{{xmodmap}}} to modify keymaps and insert our multimedia keys.

(!) [:/Discussion:Discussion]


To day, lot of keyboard have additional keys. Here, we show how to use them. This article is based on this very VERY good [http://www.lea-linux.org/cached/index/Hardware-hard_autres-clavier_multimedia.html Léa Linux How-To]

Indentify keys

  • Open a console
  • run xev (xbase-clients)

  • Search "keycode". in this example, it's 160

KeyPress event, serial 28, synthetic NO, window 0x2800001,
    root 0x5c, subw 0x0, time 3864774064, (-249,385), root:(429,410),
    state 0x0, keycode 160 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

Try and note all multimedia keys

Keys naming

Here we're going use xmodmap to modify keymaps and insert our multimedia keys.

  • Create a new text file name ~/.xmodmaprc

  • This file is define like this:

keycode YOUR_KEYCODE = YOUR_NAME
  • For example:

keycode 160 = MediaSoundMute
keycode 174 = MediaSoundDown
keycode 176 = MediaSoundUp
keycode 162 = MediaPlay
keycode 144 = MediaPrevious
keycode 145 = MediaNext
keycode 164 = MediaStop
keycode 237 = MediaHome

Work in progress:


Translated versions :

  • ?FullSearchCached(##TranslationMasterPage:Keyboard/MultimediaKeys)