Created
March 30, 2019 18:54
-
-
Save fnords/4b06d477ec554ecec9deafe5b294b92d to your computer and use it in GitHub Desktop.
Nowerty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nowerty (for Linux) | |
This layout variant is based on a standard US layout, but has æøå available by pressing Alt Gr (in the same position as on a standard no layout). | |
Add the contents of nowerty.txt to the end of the file /usr/share/X11/xkb/symbols/no. | |
Then look up the following section in the file /usr/share/X11/xkb/rules/evdev.xml: | |
<layout> | |
<configItem> | |
<name>no</name> | |
<shortDescription>no</shortDescription> | |
<description>Norwegian</description> | |
<languageList> | |
<iso639Id>nor</iso639Id> | |
<iso639Id>nob</iso639Id> | |
<iso639Id>nno</iso639Id> | |
</languageList> | |
</configItem> | |
<variantList> | |
Add the following variant block after the line <variantList>: | |
<variant> | |
<configItem> | |
<name>nowerty</name> | |
<description>Nowerty</description> | |
</configItem> | |
</variant> | |
Finally, after the line "! variant" in the file /usr/share/X11/xkb/rules/evdev.lst add the following line: | |
nowerty no: Nowerty | |
Now Nowerty should show up as one of the alternative keyboard layout variants for Norwegian. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Nowerty, a fork of Swerty by Johan E. Gustafsson | |
partial alphanumeric_keys | |
xkb_symbols "nowerty" { | |
name[Group1]="Norway - Nowerty"; | |
key <TLDE> { [ grave, asciitilde, section, onehalf ] }; | |
key <AE01> { [ 1, exclam ] }; | |
key <AE02> { [ 2, at, quotedbl ] }; | |
key <AE03> { [ 3, numbersign, sterling ] }; | |
key <AE04> { [ 4, dollar, currency ] }; | |
key <AE05> { [ 5, percent, EuroSign ] }; | |
key <AE06> { [ 6, asciicircum, dead_circumflex ] }; | |
key <AE07> { [ 7, ampersand, braceleft ] }; | |
key <AE08> { [ 8, asterisk, bracketleft ] }; | |
key <AE09> { [ 9, parenleft, bracketright ] }; | |
key <AE10> { [ 0, parenright, braceright ] }; | |
key <AE11> { [ minus, underscore, dead_diaeresis, dead_circumflex ] }; | |
key <AE12> { [ equal, plus, dead_tilde ] }; | |
key <AD01> { [ q, Q ] }; | |
key <AD02> { [ w, W ] }; | |
key <AD03> { [ e, E, EuroSign ] }; | |
key <AD04> { [ r, R ] }; | |
key <AD05> { [ t, T ] }; | |
key <AD06> { [ y, Y ] }; | |
key <AD07> { [ u, U ] }; | |
key <AD08> { [ i, I ] }; | |
key <AD09> { [ o, O, braceleft ] }; | |
key <AD10> { [ p, P, braceright ] }; | |
key <AD11> { [ bracketleft, braceleft, aring, Aring ] }; | |
key <AD12> { [bracketright, braceright, dead_acute, dead_grave ] }; | |
key <AC01> { [ a, A ] }; | |
key <AC02> { [ s, S ] }; | |
key <AC03> { [ d, D ] }; | |
key <AC04> { [ f, F ] }; | |
key <AC05> { [ g, G ] }; | |
key <AC06> { [ h, H ] }; | |
key <AC07> { [ j, J ] }; | |
key <AC08> { [ k, K ] }; | |
key <AC09> { [ l, L ] }; | |
key <AC10> { [ semicolon, colon, oslash, Ooblique ] }; | |
key <AC11> { [ apostrophe, quotedbl, ae, AE ] }; | |
key <BKSL> { [ backslash, bar ] }; | |
key <AB01> { [ z, Z ] }; | |
key <AB02> { [ x, X ] }; | |
key <AB03> { [ c, C ] }; | |
key <AB04> { [ v, V ] }; | |
key <AB05> { [ b, B ] }; | |
key <AB06> { [ n, N ] }; | |
key <AB07> { [ m, M, mu ] }; | |
key <AB08> { [ comma, less ] }; | |
key <AB09> { [ period, greater, colon ] }; | |
key <AB10> { [ slash, question ] }; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment