How-to-simply...

Add Colemak (Czech) keyboard layout to CentOS/RHEL/Rocky linux

  • 1 Create backup of /usr/share/X11/xkb including file permissions before any changes.
  • 2 Add new code block to both /usr/share/X11/xkb/rules/evdev.xml and /usr/share/X11/xkb/rules/xorg.xml:
    <variant>
    <configItem>
    <name>colemakcz</name>
    <description>Czech (Colemak)</description>
    </configItem>
    </variant>
  • 3 Add this line somewhere to both /usr/share/X11/xkb/rules/xorg.lst and /usr/share/X11/xkb/rules/evdev.lst:
    colemakcz cz: Czech (Colemak)
  • 4 Append new xkb code block from https://web.archive.org/web/20211230105013/https://raw.githubusercontent.com/matj1/cs_colemak/master/cs_colemak at the end of /usr/share/X11/xkb/symbols/cz Replace xkb_symbols string at the beginning of the code block with "colemakcz" plus consider uncommenting CAPS as BackSpace line which is recommended.
  • 5 Check if new layout is added correctly in Settings -> Region and Languague -> Input sources .. Other
    Restart the system and Use AltGr+Key to write letters with Czech punctuation.

References