Skip to content

sebastiw/keyboard-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

There are two keyboard layouts in this repo. One for X11/XKB and one for KBD. XKB is the one you would usually want. KBD is for ttys and terminals without graphics.

The keyboard layout is based on the US layout, but with some special keys:

  • Swedish åäö on Lv3+[';
  • German üß on Lv3+us
  • UK £ on Lv3+3
  • EU € on Lv3+e
  • Cyrillic alphabet on Group2 (Not included in KBD variant)
  • Caps Lock as Control (Control_L)
  • Level 3 chooser is Alt-Gr (Alt_R)
  • Groups are changed with both left and right Controls (goes up or down in group list depending on which one is pressed first) (Not included in KBD variant)

How to install the layout under XKB

  1. Add the file -seba.x11- to ~/.config/xkb/symbols/
mkdir -p ~/.config/xkb/symbols && ln -s `pwd`/seba.x11 ~/.config/xkb/symbols/seba
  1. Add the file evdev.xml to ~/.config/xkb/rules/
mkdir -p ~/.config/xkb/rules && ln -s `pwd`/evdev.xml ~/.config/xkb/rules/
  1. Logout + login.
  2. Set Seba keyboard layout
setxkbmap -layout seba

How to install the layout (keymap) under KBD

  1. Copy seba.kbd to /usr/local/share/kbd/keymaps
mkdir -p /usr/local/share/kbd/keymaps && ln -s `pwd`/seba.kbd /usr/local/share/kbd/keymaps/seba

2a. Testing it out

loadkeys /usr/local/share/kbd/keymaps/seba

2b. For persistent usage

localectl set-keymap --no-convert /usr/local/share/kbd/keymaps/seba

Visualize

  1. install xorg-xkbprint
  2. Add the file -seba.geometry- to ~/.config/xkb/geometry/
mkdir -p ~/.config/xkb/geometry && ln -s `pwd`/seba.geometry ~/.config/xkb/geometry/seba
  1. Generate PDF
setxkbmap -layout seba -geometry 'seba' -print | xkbcomp -I/home/seba/.config/xkb - - | xkbprint -ll 2  - - | ps2pdf - > seba.pdf

Resources

P. Hutterer blog post: User-specific XKB configuration man keymaps man xkeyboard-config

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published