summaryrefslogtreecommitdiff
path: root/keyboards.org
blob: 3e644946cc6a5fa5a47d6d77ec1c8a1cac051f2b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#+TITLE: My Custom Keyboards

* Cyrillic
Setting up ~phonetic_mac~ on Wayland was too cumbersome for me, so I just set it up as a separate keymap altogether.
#+begin_src fundamental :tangle "/sudo::/usr/share/X11/xkb/symbols/my-cyr" :auto_tangle nil
  partial alphanumeric_keys
  xkb_symbols "phonetic_mac" {

      include "ru(phonetic_winkeys)"
      name[Group1]= "Russian (phonetic Macintosh)";

      key <LatE> { [       Cyrillic_ie,       Cyrillic_IE, Cyrillic_io, Cyrillic_IO  ] };
      key <LatW> { [      Cyrillic_sha,      Cyrillic_SHA  ] };
      key <LatV> { [       Cyrillic_ve,       Cyrillic_VE  ] };
      key <TLDE> { [    Cyrillic_shcha,    Cyrillic_SHCHA  ] };
      key <AD11> { [       Cyrillic_yu,       Cyrillic_YU  ] };
      key <AD12> { [      Cyrillic_zhe,      Cyrillic_ZHE  ] };
      key <AE03> { [                 3,        numbersign, numerosign  ] };
      key <AE04> { [                 4,            dollar, U20BD       ] }; // ruble
      key <AE05> { [                 5,           percent  ] };
      key <AE06> { [                 6,       asciicircum  ] };
      key <AE11> { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, minus,       underscore  ] };
      key <AE12> { [ Cyrillic_hardsign, Cyrillic_HARDSIGN, equal,       plus        ] };

      include "level3(ralt_switch)"
  };
#+end_src