Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xmodmap and keyboard.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Mon Feb 10, 2003 12:43 pm    Post subject: Xmodmap and keyboard. Reply with quote

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
View user's profile Send private message
herbie
Guru
Guru


Joined: 09 Oct 2002
Posts: 319
Location: London UK

PostPosted: Mon Feb 10, 2003 3:43 pm    Post subject: Reply with quote

~/.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
View user's profile Send private message
maKKus
Guru
Guru


Joined: 07 Aug 2002
Posts: 356
Location: /Universe/Milky Way/Sol/Earth/Europe/EEC/The Netherlands/Limburg/Beek/Neerbeek

PostPosted: Mon Feb 10, 2003 3:49 pm    Post subject: Reply with quote

/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
View user's profile Send private message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Mon Feb 10, 2003 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
herbie
Guru
Guru


Joined: 09 Oct 2002
Posts: 319
Location: London UK

PostPosted: Mon Feb 10, 2003 8:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Tue Feb 11, 2003 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Tue Feb 11, 2003 4:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum