<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>xmodmap replacement in 2020</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/678 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="678"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;XKB seems the way to go&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;convert xmodmap to xkb: &lt;a class="reference external" href="https://lists.debian.org/debian-x/2012/09/msg00274.html"&gt;https://lists.debian.org/debian-x/2012/09/msg00274.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;gnome 3 (shell) does not load xmodmap anymore: &lt;a class="reference external" href="https://bugzilla.redhat.com/show_bug.cgi?id=873656"&gt;https://bugzilla.redhat.com/show_bug.cgi?id=873656&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://medium.com/&amp;#64;damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450"&gt;https://medium.com/&amp;#64;damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://michal.kosmulski.org/computing/articles/custom-keyboard-layouts-xkb.html"&gt;https://michal.kosmulski.org/computing/articles/custom-keyboard-layouts-xkb.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr class="docutils" /&gt;
&lt;div class="section" id="manual-mapping"&gt;
&lt;h1&gt;Manual mapping&lt;/h1&gt;
&lt;p&gt;Replacement for xmodmap-based mapping of my Kinesis Ergo (see &lt;a class="reference external" href="http://p.cweiske.de/154"&gt;http://p.cweiske.de/154&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I had to switch to PC mode (pgrm+F6)&lt;/p&gt;
&lt;p&gt;Helpful were:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.charvolant.org/doug/xkb/html/node5.html"&gt;https://www.charvolant.org/doug/xkb/html/node5.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://hack.org/~mc/writings/xkb.html"&gt;https://hack.org/~mc/writings/xkb.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Howto add some german keys like äöüÄÖÜß€ in the US keyboard layout:&lt;/p&gt;
&lt;ol class="arabic"&gt;
&lt;li&gt;&lt;p class="first"&gt;save current keyboard layout into file:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
xkbcomp -xkb :0 original-layout.xkb
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;copy file, apply the changes from my xkb file into it&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;load:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
xkbcomp ~/.config/xkb-keyboard/cweiske-kinesis-full.xkb $DISPLAY
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Key tester:&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;evtest&lt;/tt&gt; (root)
kinesis listed 3 times; 2nd is keyboard:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
/dev/input/event21:   Kinesis Advantage2 Keyboard
/dev/input/event22:   Kinesis Advantage2 Keyboard
/dev/input/event23:   Kinesis Advantage2 Keyboard
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/678/rev-raw/d527720b3af96c4ce21ad339bb3897386ebf894a/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/678#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;style type="text/css"&gt;&lt;/style&gt;&lt;div class="code"&gt;&lt;table class="xkb"&gt;&lt;tbody&gt;&lt;tr class="li1"&gt;&lt;td class="ln"&gt;&lt;pre class="de1"&gt;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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
&lt;/pre&gt;&lt;/td&gt;&lt;td class="de1"&gt;&lt;pre class="de1"&gt;partial
xkb_types &amp;quot;complete&amp;quot; {
&amp;#160; &amp;#160; type &amp;quot;FOUR_LEVEL_RALT&amp;quot; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; modifiers= Shift+LevelThree;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; map[Shift]= Level2;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; map[LevelThree]= Level3;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; map[Shift+LevelThree]= Level4;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; level_name[Level1]= &amp;quot;Base&amp;quot;;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; level_name[Level2]= &amp;quot;Shift&amp;quot;;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; level_name[Level3]= &amp;quot;Level3&amp;quot;;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; level_name[Level4]= &amp;quot;Shift Level3&amp;quot;;
&amp;#160; &amp;#160; };
};
&amp;#160;
partial
xkb_symbols &amp;quot;pc+de(nodeadkeys)+us:2+de:3+inet(evdev)&amp;quot; {
&amp;#160; &amp;#160; include &amp;quot;pc+de(nodeadkeys)+us:2+de:3+inet(evdev)&amp;quot;
&amp;#160;
&amp;#160; &amp;#160; key &amp;lt;AC01&amp;gt; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group1]= &amp;quot;FOUR_LEVEL_ALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group2]= &amp;quot;FOUR_LEVEL_RALT&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group3]= &amp;quot;FOUR_LEVEL_ALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group1]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; a, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; A, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;ae, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;AE ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group2]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; a, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; A, &amp;#160; &amp;#160; &amp;#160;adiaeresis, &amp;#160; &amp;#160; &amp;#160;Adiaeresis ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group3]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; a, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; A, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;ae, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;AE ]
&amp;#160; &amp;#160; };
&amp;#160; &amp;#160; key &amp;lt;AC02&amp;gt; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group1]= &amp;quot;FOUR_LEVEL_SEMIALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group2]= &amp;quot;FOUR_LEVEL_RALT&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group3]= &amp;quot;FOUR_LEVEL_SEMIALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group1]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; s, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; S, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; U017F, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; U1E9E ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group2]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; s, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; S, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;ssharp, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;ssharp ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group3]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; s, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; S, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; U017F, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; U1E9E ]
&amp;#160; &amp;#160; };
&amp;#160;
&amp;#160; &amp;#160; key &amp;lt;AD03&amp;gt; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group1]= &amp;quot;FOUR_LEVEL_SEMIALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group2]= &amp;quot;FOUR_LEVEL_RALT&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group3]= &amp;quot;FOUR_LEVEL_SEMIALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group1]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; e, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; E, &amp;#160; &amp;#160; &amp;#160; &amp;#160;EuroSign, &amp;#160; &amp;#160; &amp;#160; &amp;#160;EuroSign ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group2]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; e, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; E, &amp;#160; &amp;#160; &amp;#160; &amp;#160;EuroSign, &amp;#160; &amp;#160; &amp;#160; &amp;#160;EuroSign ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group3]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; e, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; E, &amp;#160; &amp;#160; &amp;#160; &amp;#160;EuroSign, &amp;#160; &amp;#160; &amp;#160; &amp;#160;EuroSign ]
&amp;#160; &amp;#160; };
&amp;#160; &amp;#160; key &amp;lt;AD07&amp;gt; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group1]= &amp;quot;FOUR_LEVEL_SEMIALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group2]= &amp;quot;FOUR_LEVEL_RALT&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group3]= &amp;quot;FOUR_LEVEL_SEMIALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group1]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; u, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; U, &amp;#160; &amp;#160; &amp;#160; downarrow, &amp;#160; &amp;#160; &amp;#160; &amp;#160; uparrow ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group2]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; u, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; U, &amp;#160; &amp;#160; &amp;#160;udiaeresis, &amp;#160; &amp;#160; &amp;#160;Udiaeresis ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group3]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; u, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; U, &amp;#160; &amp;#160; &amp;#160; downarrow, &amp;#160; &amp;#160; &amp;#160; &amp;#160; uparrow ]
&amp;#160; &amp;#160; };
&amp;#160; &amp;#160; key &amp;lt;AD09&amp;gt; {
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group1]= &amp;quot;FOUR_LEVEL_ALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group2]= &amp;quot;FOUR_LEVEL_RALT&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; type[group3]= &amp;quot;FOUR_LEVEL_ALPHABETIC&amp;quot;,
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group1]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; o, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; O, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;oslash, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;Oslash ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group2]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; o, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; O, &amp;#160; &amp;#160; &amp;#160;odiaeresis, &amp;#160; &amp;#160; &amp;#160;Odiaeresis ],
&amp;#160; &amp;#160; &amp;#160; &amp;#160; symbols[Group3]= [ &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; o, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; O, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;oslash, &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;Oslash ]
&amp;#160; &amp;#160; };
};
&amp;#160;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/678/rev-raw/d527720b3af96c4ce21ad339bb3897386ebf894a/cweiske-kinesis.xkb" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/678#cweiske-kinesis.xkb"&gt;cweiske-kinesis.xkb&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
