Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xmodmap vx xsetkbmap vs loadkeys vs ......
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Sun May 04, 2003 4:52 am    Post subject: xmodmap vx xsetkbmap vs loadkeys vs ...... Reply with quote

There seem to be an awful many ways to change the keyboard layout. Is there any prefered method, or doesn't it matter. Is there a difference at all?

//Daniel Armyr
Back to top
View user's profile Send private message
zrajm
n00b
n00b


Joined: 11 Apr 2003
Posts: 17
Location: Uppsala, Sweden

PostPosted: Sun May 04, 2003 12:14 pm    Post subject: Re: xmodmap vx xsetkbmap vs loadkeys vs ...... Reply with quote

loadkeys is for the console (and cannot be used in X), xmodmap is for use in X, and xkb, which is loaded with command "xsetkbmap", is a newer method for for making changes in the keymap under X.

Xkb comes with a set of predefined "rules" for changing the keyboard layout and is quite modular (i.e. you may defined your keymap using as may rules as you like, one after the other), so as long as you want to do something somebody has done before (e.g. use dvorak, turn off "Caps Lock" or swap the Ctrl and Caps Lock keys) it's easy. Redefining the keymap from ground up seems a bit more complex though (haven't tried this myself yet though).

Xmodmaps are hardware-specific (i.e. if you change your [hardware] keyboard into something else, or use it on a different architecture, you may have to make changes for your xmodmap to work -- using xkb you would just change the rule specifying what keyboard hardware you got)If you want to produce an xmodmap, take a look at the program xkeycaps -- a graphical xmodmap editor which much simplifies making your own.

The format of loadkeys and xmodmap files are similar, but they're *not* compatible (sigh!).
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun May 04, 2003 6:29 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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