View previous topic :: View next topic |
Author |
Message |
magisk n00b
Joined: 10 Feb 2003 Posts: 44 Location: Haugesund, Norway
|
Posted: Mon Feb 10, 2003 12:43 pm Post subject: Xmodmap and keyboard. |
|
|
I have a few extra keys on my keyboard I want to use for audio volum and starting apps like eterm, evolution, etc.
But I cannot locate the 'Xmodmap' file on my gentoo system. Shall I just put the 'xmodmap' commands in my ~/.xinitrc, or are there any other smart places for these things? :-) |
|
Back to top |
|
|
herbie Guru
Joined: 09 Oct 2002 Posts: 319 Location: London UK
|
Posted: Mon Feb 10, 2003 3:43 pm Post subject: |
|
|
~/.Xmodmap is the one to use, the format is something like this
Code: | keycode 176 = F13
keycode 174 = F14
keycode 233 = F15
keycode 234 = F16
|
Herbie |
|
Back to top |
|
|
maKKus Guru
Joined: 07 Aug 2002 Posts: 356 Location: /Universe/Milky Way/Sol/Earth/Europe/EEC/The Netherlands/Limburg/Beek/Neerbeek
|
Posted: Mon Feb 10, 2003 3:49 pm Post subject: |
|
|
/etc/X11/Xmodmap is another place for system wide settings.
I use it for my dutch specific settings:
ëèéÿüïöòóàáËÈÉÜÏÖÒÓÀÁ
Mine looks like this:
keycode 0x16 = BackSpace
keycode 115 = F13
keycode 117 = Menu
keycode 0x0E = 5 percent EuroSign
keycode 0x1A = e E ediaeresis Ediaeresis
keycode 0x1B = r R egrave Egrave
keycode 0x1C = t T eacute Eacute
keycode 0x1D = y Y ydiaeresis Ydiaeresis
keycode 0x1E = u U udiaeresis Udiaeresis
keycode 0x1F = i I idiaeresis Idiaeresis
keycode 0x20 = o O odiaeresis Odiaeresis
keycode 0x21 = p P ograve Ograve
keycode 0x2E = l L oacute Oacute
keycode 0x26 = a A adiaeresis Adiaeresis
keycode 0x27 = s S agrave Agrave
keycode 0x28 = d D aacute Aacute
keycode 0x71 = Mode_switch
clear Mod3
add Mod3 = Mode_switch |
|
Back to top |
|
|
magisk n00b
Joined: 10 Feb 2003 Posts: 44 Location: Haugesund, Norway
|
Posted: Mon Feb 10, 2003 8:50 pm Post subject: |
|
|
Well. I have made a '~/.Xmodmap' and '/etc/X11/Xmodmap' (the file I used on my old RedHat system), but none of theme seems to work.
I run 'xev' and still get 'NoSymbol' |
|
Back to top |
|
|
herbie Guru
Joined: 09 Oct 2002 Posts: 319 Location: London UK
|
Posted: Mon Feb 10, 2003 8:54 pm Post subject: |
|
|
magisk wrote: | Well. I have made a '~/.Xmodmap' and '/etc/X11/Xmodmap' (the file I used on my old RedHat system), but none of theme seems to work.
I run 'xev' and still get 'NoSymbol' |
bummer - does it help if you run $xmodmap ~/.Xmodmap |
|
Back to top |
|
|
magisk n00b
Joined: 10 Feb 2003 Posts: 44 Location: Haugesund, Norway
|
Posted: Tue Feb 11, 2003 12:59 pm Post subject: |
|
|
I'll try it when I get home from work. I tought the file '/etc/X11/Xmodmap' was a standard file that X would read from.
Maybe do a search on google.com and see if I can make some sense from there. |
|
Back to top |
|
|
magisk n00b
Joined: 10 Feb 2003 Posts: 44 Location: Haugesund, Norway
|
Posted: Tue Feb 11, 2003 4:54 pm Post subject: |
|
|
Nope.. didn't work this time either. Anyway, I just put the "xmodmap -e "keycode 174 = XF86...." thing in my ~/.xinitrc file. |
|
Back to top |
|
|
|