Skip to content
 
 

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Swerty

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.

Layout features

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.

Swedish letters

Combo Letter
RightAlt + ; ö
RightAlt + : Ö
RightAlt + ' ä
RightAlt + " Ä
RightAlt + [ å
RightAlt + { Å

Accented letters (dead keys)

Press the combo, then the letter:

Combo Accent Example
RightAlt + ] acute é
RightAlt + Shift + ] grave è
RightAlt + - diaeresis ü
RightAlt + = tilde ñ
RightAlt + 6, or RightAlt + Shift + - circumflex ê

Arrow keys

Vim-style arrows on the home row: RightAlt + h/j/k/l → Left/Down/Up/Right.

Extra symbols

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)

Installation

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.

Automatic

  1. Clone this repo.
git clone https://github.com/Sebastian-0/Swerty && cd Swerty
  1. Run the install-script. This changes keyboard system files and requires superuser privileges.
./install.sh
  1. 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.

Manual

  1. Clone this repo.
git clone https://github.com/Sebastian-0/Swerty.git && cd Swerty
  1. Add the contents of key_map.txt to the end of /usr/share/X11/xkb/symbols/se.

  2. 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>
  1. Add the following variant below (this snippet is also available in evdev_variant.lst in this repo).
<variant>
  <configItem>
    <name>swerty</name>
    <description>Swerty (Swedish)</description>
  </configItem>
</variant>
  1. After the line "! variant" in the file /usr/share/X11/xkb/rules/evdev.lst * add the following:
 swerty		se: Swerty (Swedish)
  1. To activate the new layout run:
setxkbmap -layout se -variant swerty

Notes

  • If you want to customise the keys all mappings are set in key_map.txt.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages