US qwerty layout with access to åäö and more through a third and fourth keyboard level, accessed with RightAlt (AltGr) or CapsLock.
Based on this repository combined with Swerty.
All combos below use RightAlt (AltGr). CapsLock is remapped to work as an alternative to RightAlt, so it can be used instead in any of them.
| Combo | Letter |
|---|---|
RightAlt + ; |
ö |
RightAlt + : |
Ö |
RightAlt + ' |
ä |
RightAlt + " |
Ä |
RightAlt + [ |
å |
RightAlt + { |
Å |
Press the combo, then the letter:
| Combo | Accent | Example |
|---|---|---|
RightAlt + ] |
acute | é |
RightAlt + Shift + ] |
grave | è |
RightAlt + - |
diaeresis | ü |
RightAlt + = |
tilde | ñ |
RightAlt + 6, or RightAlt + Shift + - |
circumflex | ê |
Vim-style arrows on the home row: RightAlt + h/j/k/l →
Left/Down/Up/Right.
| Combo | Symbol |
|---|---|
RightAlt + 7/8/9/0 |
{ [ ] } |
RightAlt + o/p |
{ } |
RightAlt + e or 5 |
€ |
RightAlt + 2 |
" |
RightAlt + 3 |
£ |
RightAlt + 4 |
¤ |
RightAlt + m |
µ |
RightAlt + . |
: |
RightAlt + ` |
§ (½ with Shift) |
There are two installation methods, a manual and an automatic one which performs the same tasks as the manual steps. The install-script has been tested on Arch and Ubuntu, but I give no guaranties and take no responsibility if something breaks.
- Clone this repo.
git clone https://github.com/Sebastian-0/Swerty && cd Swerty
- Run the install-script. This changes keyboard system files and requires superuser privileges.
./install.sh
- To activate the new layout run:
setxkbmap -layout se -variant swerty
You can run the install script multiple times, it only installs the changes if they are not present already. This can be useful if the layout is uninstalled by the OS.
- Clone this repo.
git clone https://github.com/Sebastian-0/Swerty.git && cd Swerty
-
Add the contents of key_map.txt to the end of
/usr/share/X11/xkb/symbols/se. -
Look up the following section in the file
/usr/share/X11/xkb/rules/evdev.xml:
<layout>
<configItem>
<name>se</name>
<shortDescription>Swe</shortDescription>
<description>Sweden</description>
<languageList><iso639Id>swe</iso639Id></languageList>
</configItem>
<variantList>
- Add the following variant below (this snippet is also
available in
evdev_variant.lstin this repo).
<variant>
<configItem>
<name>swerty</name>
<description>Swerty (Swedish)</description>
</configItem>
</variant>
- After the line "! variant" in the file /usr/share/X11/xkb/rules/evdev.lst * add the following:
swerty se: Swerty (Swedish)
- To activate the new layout run:
setxkbmap -layout se -variant swerty
- If you want to customise the keys all mappings are set in
key_map.txt.