From ff6cad2e8060f3795782ab04adfdc2f044de6dea Mon Sep 17 00:00:00 2001 From: angoosh Date: Wed, 13 Oct 2021 20:50:34 +0200 Subject: [PATCH] custom_kbd_layout --- custom_kbd_layout_gnome.md | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 custom_kbd_layout_gnome.md diff --git a/custom_kbd_layout_gnome.md b/custom_kbd_layout_gnome.md new file mode 100644 index 0000000..87a5645 --- /dev/null +++ b/custom_kbd_layout_gnome.md @@ -0,0 +1,71 @@ +1 - create layout, cz hack for example: + +in /usr/share/X11/xkb/symbols +create file for ex: czus + +default partial alphanumeric_keys +xkb_symbols "basic" { + + include "us(basic)" + name[Group1]= "Custom CZ - US"; + + key { [equal, plus, dead_acute, dead_caron ] }; + + key { [ w, W, ecaron, Ecaron ] }; + key { [ e, E, eacute, Eacute ] }; + + key { [ a, A, aacute, Aacute ] }; + key { [ i, I, iacute, Iacute ] }; + key { [ o, O, oacute, Oacute ] }; + key { [ y, Y, yacute, Yacute ] }; + key { [ u, U, uacute, Uacute ] }; + key { [ j, J, uring, Uring ] }; + + key { [ s, S, scaron, Scaron ] }; + key { [ z, Z, zcaron, Zcaron ] }; + key { [ c, C, ccaron, Ccaron ] }; + key { [ r, R, rcaron, Rcaron ] }; + key { [ t, T, tcaron, Tcaron ] }; + key { [ d, D, dcaron, Dcaron ] }; + key { [ n, N, ncaron, Ncaron ] }; + + key { [ space, space, nobreakspace, nobreakspace] }; + + include "level3(ralt_switch)" +}; + +2 - edit /usr/share/X11/xkb/rules/evdev + +under ! option = symbols add: +czus:czhack = +czus(czhack) + +3 - edit /usr/share/X11/xkb/rules/evdev.xml + +under add: + + + czus + Kuxa's czus + czus + + cze + + + + + + czus + CZUS base + + + + + +4 - edit dconf + +open dconf-editor and under /org/gnome/desktop/input-sources +edit xkb-options to: [('xkb','czus')] +apply +log out and log back in and you're done + +keyboard layout may be needed to change to czus