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)
- Add the file
seba.x11
to/usr/share/X11/xkb/symbols/
$ sudo ln -s `pwd`/seba.x11 /usr/share/X11/xkb/symbols/seba
- There is a number of files to modify in
/usr/share/X11/xkb/rules/
in filebase.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
- Logout + login.
- Set Seba keyboard layout
$ setxkbmap -layout seba
- Make sure the
/usr/local/share/kbd/keymaps
directory exist
mkdir -p /usr/local/share/kbd/keymaps
- Copy
seba.kbd
to it
ln -s `pwd`/seba.kbd /usr/local/share/kbd/keymaps/seba
- Testing it out
loadkeys /usr/local/share/kbd/keymaps/seba
- For persistent usage
localectl set-keymap --no-convert /usr/local/share/kbd/keymaps/seba