Modify keyboard: Unterschied zwischen den Versionen

Aus Wiki
Zur Navigation springen Zur Suche springen
(automatic loading)
(Links)
Zeile 21: Zeile 21:
$ xkbcomp -w 0 xkbmap -o xkbmap.xkm
$ xkbcomp -w 0 xkbmap -o xkbmap.xkm


== Links ==
[https://wiki.archlinux.org/index.php/Keyboard_configuration_in_Xorg Keyboard configuration in Xorg]


== Example modification ==
== Example modification ==

Version vom 10. Januar 2018, 13:42 Uhr

Manual way, remains until reboot

First, export your keyboard configurations to a file:

$ xkbcomp -xkb $DISPLAY xkbmap

Modify file xkbmap.

Save and reload keyboard configurations:

$ xkbcomp -w 0 xkbmap $DISPLAY

So far no root access is required.

For automatic loading at login?

$ cp xkbmap $HOME/.Xkbmap

Save compiled keymap to file

$ xkbcomp -w 0 xkbmap -o xkbmap.xkm

Links

Keyboard configuration in Xorg

Example modification

   key <AC01> {
       type= "FOUR_LEVEL_ALPHABETIC",
       symbols[Group1]= [               a,               A,           braceleft,              AE ]
   };
   key <AC02> {
       type= "FOUR_LEVEL_SEMIALPHABETIC",
       symbols[Group1]= [               s,               S,           bracketleft,           U1E9E ]
   };
   key <AC03> {
       type= "FOUR_LEVEL_ALPHABETIC",
       symbols[Group1]= [               d,               D,           bracketright,             ETH ]
   };
   key <AC04> {
       type= "FOUR_LEVEL_SEMIALPHABETIC",
       symbols[Group1]= [               f,               F,           braceright,     ordfeminine ]
   };
   key <AC05> {
       type= "FOUR_LEVEL_ALPHABETIC",
       symbols[Group1]= [               g,               G,           backslash,             ENG ]
   };