View previous topic :: View next topic |
Author |
Message |
Cuardin l33t
Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Sun May 04, 2003 4:52 am Post subject: xmodmap vx xsetkbmap vs loadkeys vs ...... |
|
|
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 |
|
|
zrajm n00b
Joined: 11 Apr 2003 Posts: 17 Location: Uppsala, Sweden
|
Posted: Sun May 04, 2003 12:14 pm Post subject: Re: xmodmap vx xsetkbmap vs loadkeys vs ...... |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun May 04, 2003 6:29 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|
|
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
|
|