Skip to content

sebastiw/keyboard-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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 X11

  1. Add the file seba.x11 to /usr/share/X11/xkb/symbols/
$  sudo ln -s `pwd`/seba.x11 /usr/share/X11/xkb/symbols/seba
  1. There is a number of files to modify in /usr/share/X11/xkb/rules/ in file base.lst after the line where it says: “! layout” add a line “seba Seba”

    in file base.xml where “<layoutList>” begins, add

<layout>
   <configItem>
     <name>seba</name>
     <shortDescription>seba</shortDescription>
     <description>Seba</description>
     <languageList>
       <iso639Id>eng</iso639Id>
     </languageList>
   </configItem>
 </layout>

I.E.

sed -i '\|! layout|a\  seba\t\t  Seba' /usr/share/X11/xkb/rules/base.lst

sed -i '\|<layoutList>|a\\t\t<layout>\n\t\t\t<configItem>\n\t\t\t\t<name>seba</name>\n\t\t\t\t<shortDescription>seba</shortDescription>\n\t\t\t\t<description>Seba</description>\n\t\t\t\t<languageList>\n\t\t\t\t\t<iso639Id>eng</iso639Id>\n\t\t\t\t</languageList>\n\t\t\t</configItem>\n\t\t</layout>' /usr/share/X11/xkb/rules/base.xml
  1. Logout + login.
  2. Set Seba keyboard layout
$  setxkbmap -layout seba

How to install the layout (keymap) under KBD

  1. Make sure the /usr/local/share/kbd/keymaps directory exist
mkdir -p /usr/local/share/kbd/keymaps
  1. Copy seba.kbd to it
ln -s `pwd`/seba.kbd /usr/local/share/kbd/keymaps/seba
  1. Testing it out
loadkeys /usr/local/share/kbd/keymaps/seba
  1. For persistent usage
localectl set-keymap --no-convert /usr/local/share/kbd/keymaps/seba

Resources

https://www.charvolant.org/doug/xkb/html/xkb.html

https://jlk.fjfi.cvut.cz/arch/manpages/man/keymaps.5

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published