Skip to content

Instantly share code, notes, and snippets.

@Zash
Created September 16, 2023 12:35
Show Gist options
  • Save Zash/451592b59912acd5d29e5b0249288992 to your computer and use it in GitHub Desktop.
Save Zash/451592b59912acd5d29e5b0249288992 to your computer and use it in GitHub Desktop.
My custom keyboard layout
// Zashs Swedish Dvorak
// setxkbmap -I$HOME/.xkb prog -print | xkbcomp -I$HOME/.xkb - $DISPLAY
partial alphanumeric_keys
xkb_symbols "zdvorak" {
include "se"
include "se(dvorak)"
name[Group1]="Sweden - Zashs Dvorak";
key <AD01> { [ aring, Aring, less, guillemotleft ] };
key <AD02> { [ adiaeresis, Adiaeresis, braceleft, bracketleft ] };
key <AD03> { [ odiaeresis, Odiaeresis, braceright, bracketright ] };
key <AD04> { [ p, P, greater, guillemotright ] };
key <AD05> { [ y, Y, yen ] };
key <AD06> { [ f, F, U0192 ] };
key <AD07> { [ g, G ] };
key <AD08> { [ c, C, numbersign, copyright ] };
key <AD09> { [ r, R, U23ce, registered ] };
key <AD10> { [ l, L ] };
key <AD11> { [ comma, semicolon, dead_cedilla, dead_ogonek ] };
key <AD12> { [ asciitilde, asciicircum, dead_diaeresis, dead_circumflex ] };
key <AC01> { [ a, A, at, ampersand ] };
key <AC02> { [ o, O, percent, U014f ] };
key <AC03> { [ e, E, equal, notequal ] };
key <AC04> { [ u, U, slash, backslash ] };
key <AC05> { [ i, I, leftarrow, uparrow ] };
key <AC06> { [ d, D, rightarrow, downarrow ] };
key <AC07> { [ h, H, backslash ] };
key <AC08> { [ t, T, parenleft ] };
key <AC09> { [ n, N, parenright ] };
key <AC10> { [ s, S, dollar, U00df] };
key <AC11> { [ minus, underscore, grave, dead_abovedot ] };
key <AC12> { [ apostrophe, quotedbl, asterisk, multiply ] };
key <AB01> { [ period, colon, periodcentered, dead_abovedot ] };
key <AB02> { [ q, Q, question, U203d] };
key <AB03> { [ j, J ] };
key <AB04> { [ k, K ] };
key <AB05> { [ x, X ] };
key <AB06> { [ b, B ] };
key <AB07> { [ m, M, mu ] };
key <AB08> { [ w, W] };
key <AB09> { [ v, V ] };
key <AB10> { [ z, Z ] };
key <SPCE> { [ space, space, space, space ] };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment