Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

Commit

Permalink
Added keyboard layout in X page from old wiki (#24)
Browse files Browse the repository at this point in the history
* added keyboard layout in x page from old wiki

* keyboard layout: fixed install format and simplified

* update index

* fix typo

* keyboard: more concise

* edits
  • Loading branch information
ectlunya committed Jun 20, 2020
1 parent cd3edbd commit d67340b
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.txt
Expand Up @@ -61,7 +61,7 @@
| | | |
| @/xorg/x11-forwarding | | TODO |
| @/xorg/sx | | TODO |
| | | TODO |
| @/xorg/keyboard-layout | | TODO |
| | | |
| | | |
+-------------------------------------+ +-------------------------------------+
Expand Down
3 changes: 2 additions & 1 deletion xorg/index.txt
@@ -1,8 +1,9 @@
XORG
________________________________________________________________________________

- @/keyboard-layout
- @/sx
- @/x11-forwarding
- @/x11vnc
- @/xinit
- @/xorg-server
- @/sx
52 changes: 52 additions & 0 deletions xorg/keyboard-layout.txt
@@ -0,0 +1,52 @@
SETTING THE KEYBOARD LAYOUT IN X
________________________________________________________________________________


Using setxkbmap
________________________________________________________________________________


First, install setxkbmap:

+------------------------------------------------------------------------------+
| |
| $ kiss b setxkbmap && kiss i setxkbmap |
| |
+------------------------------------------------------------------------------+

Available layouts can be found in /usr/share/X11/xkb/symbols/ and set from the
command line:

+------------------------------------------------------------------------------+
| |
| $ setxkbmap latam |
| |
+------------------------------------------------------------------------------+

Put the above command in ~/.xinitrc to load it whenever an X session is started.


Exiting xorg configuration files
________________________________________________________________________________

Create 00-keyboard.conf in /etc/X11/xorg.conf.d/ and edit the Xkb* options
below to suit your needs. [0]

+------------------------------------------------------------------------------+
| |
| Section "InputClass" |
| Identifier "system-keyboard" |
| MatchIsKeyboard "on" |
| Option "XkbLayout" "de" |
| Option "XkbModel" "pc105" |
| Option "XkbVariant" ",qwertz" |
| Option "XkbOptions" "grp:alt_shift_toggle" |
| EndSection |
| |
+------------------------------------------------------------------------------+


References
________________________________________________________________________________

[0] https://www.x.org/releases/X11R7.5/doc/input/XKB-Config.html

0 comments on commit d67340b

Please sign in to comment.