Differences between revisions 3 and 4
Revision 3 as of 2008-02-04 14:50:18
Size: 878
Comment:
Revision 4 as of 2008-02-04 21:51:49
Size: 1794
Comment: work in progress
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
##TranslationMasterPage:ENGLISH PAGE NAME HERE ##TranslationMasterPage:Keyboard/MultimediaKeys
Line 5: Line 5:
To day, lot of keyboard have additional keys. Here, we show how to use them. 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]
Line 7: Line 7:
= Indentify keys =
Line 9: Line 10:
 * Search "keycode"  * 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'll 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
}}}


Line 17: Line 50:
 * http://www.lea-linux.org/cached/index/Hardware-hard_autres-clavier_multimedia.html
Line 23: Line 56:
##Translated versions :
## [[FullSearchCached(##TranslationMasterPage:Keyboard/MultimediaKeys)]]
Translated versions :
 [[FullSearchCached(##TranslationMasterPage:Keyboard/MultimediaKeys)]]

(!) [:/Discussion:Discussion]


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]

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'll 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)