Re: [STUMP] XKB input in Stumpwm?

Mikael Jansson <[email protected]>
Newsgroups gmane.comp.window-managers.stumpwm.devel
Message-ID <CABXUExcs=hNtYit83trUpd8gaCUfskqCqm030vVzrT1EoyHEMQ@mail.gmail.com>
On Wed, Jul 30, 2014 at 4:02 PM, Eric Abrahamsen <[email protected]>
wrote:

> Mikael Jansson <[email protected]> writes:
>
> > In Ubuntu I added my custom Swedish xkbd by patching the system
> > keyboard settings in /usr/share/X11/xkb/{symbols/se,rules/evdev.xml}.
> > It then works with the standard Xorg keyboard switching utilities. I
> > use GNOME together with StumpWM but that should not make a
> > difference.
>
> Where do you specify the group toggle? My custom us layout and the
> colemak variant are all under /usr/share/X11/xkb, but Arch tells you to set
> keyboard options in /etc/X11/xorg.conf.d. Where do you set yours?
>
>
This is what my note-to-self-file says:
Modify: /usr/share/X11/xkb/symbols/se
Modify: /usr/share/X11/xkb/rules/evdev.xml
Run:

Verify:
cd /usr/share/X11/xkb/symbols
xkbcomp se # test
xkbcomp -lhlpR '*' -o ../symbols.dir # verify

Parts of my diff to se:

+
+partial modifier_keys
+xkb_symbols "pworak_mods" {
+    replace key <CAPS> {  [ Control_L, Control_L ] };
+    modifier_map  Control { <CAPS> };
+
+    // Left control key = F20
+    // Caps = Control_L
+    replace key <AA00> {  [ F20 ] };
+};
+
+partial alphanumeric_keys
+xkb_symbols "pworak" {
+name[Group1]="Swedish (Pworak)";
+
+// don't include in the future
+include "se(basic)"
+include "se(pworak_mods)"
+    ///////////////////////////////////////
+    key <AD01> { [     aring,      Aring,    question    ] };
+    key <AD02> { [  adiaeresis, Adiaeresis,  parenleft          ] };
+    key <AD03> { [ odiaeresis, Odiaeresis,  parenright          ] };

The diff to evdev.xml:

             <languageList><iso639Id>swl</iso639Id></languageList>
           </configItem>
         </variant>
+        <variant>
+          <configItem>
+            <name>pworak</name>
+            <description>Swedish (Pworak)</description>
+          </configItem>
+        </variant>
       </variantList>
     </layout>
     <layout>

- Micke

_______________________________________________
Stumpwm-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.