You are not logged in.
I want to create and set a custom keyboard layout with setxkbmap.
I created the file ~/.xkb/symbols/yr with this content:
partial default alphanumeric_keys
xkb_symbols "basic" {
name[Group1]= "European (Dvorak)";
key <TLDE> { [ grave, asciitilde, dead_breve, dead_abovering ] };
key <AE01> { [ 1, exclam, U2216, exclamdown ] };
key <AE02> { [ 2, at, dagger, doubledagger ] };
key <AE03> { [ 3, numbersign, function, sterling ] };
key <AE04> { [ 4, dollar, EuroSign, yen ] };
key <AE05> { [ 5, percent, permille, degree ] };
key <AE06> { [ 6, asciicircum, dead_circumflex, dead_caron ] };
key <AE07> { [ 7, ampersand, paragraph, section ] };
key <AE08> { [ 8, asterisk, ordfeminine, masculine ] };
key <AE09> { [ 9, parenleft, leftdoublequotemark, leftsinglequotemark ] };
key <AE10> { [ 0, parenright, rightdoublequotemark, rightsinglequotemark ] };
key <AE11> { [ bracketleft, braceleft, guillemotleft, U2039 ] };
key <AE12> { [ bracketright, braceright, guillemotright, U203A ] };
key <AD01> { [ apostrophe, quotedbl, aacute, Aacute ] };
key <AD02> { [ comma, less, oacute, Oacute ] };
key <AD03> { [ period, greater, eacute, Eacute ] };
key <AD04> { [ p, P, uacute, Uacute ] };
key <AD05> { [ y, Y, ycircumflex, Ycircumflex ] };
key <AD06> { [ f, F, ssharp, U1E9E ] };
key <AD07> { [ g, G, U01F9, U01F8 ] };
key <AD08> { [ c, C, ccedilla, Ccedilla ] };
key <AD09> { [ r, R, adiaeresis, Adiaeresis ] };
key <AD10> { [ l, L, oe, OE ] };
key <AD11> { [ slash, question, notsign, questiondown ] };
key <AD12> { [ equal, plus, multiply, division ] };
key <AC01> { [ a, A, acircumflex, Acircumflex ] };
key <AC02> { [ o, O, ocircumflex, Ocircumflex ] };
key <AC03> { [ e, E, ecircumflex, Ecircumflex ] };
key <AC04> { [ u, U, ucircumflex, Ucircumflex ] };
key <AC05> { [ i, I, icircumflex, Icircumflex ] };
key <AC06> { [ d, D, U1E11, U1E10 ] };
key <AC07> { [ h, H, dstroke, Eth ] };
key <AC08> { [ t, T, thorn, Thorn ] };
key <AC09> { [ n, N, ntilde, Ntilde ] };
key <AC10> { [ s, S, scedilla, Scedilla ] };
key <AC11> { [ minus, underscore, U2014, overline ] };
key <AB01> { [ semicolon, colon, agrave, Agrave ] };
key <AB02> { [ q, Q, ograve, Ograve ] };
key <AB03> { [ j, J, egrave, Egrave ] };
key <AB04> { [ k, K, ugrave, Ugrave ] };
key <AB05> { [ x, X, U0175, U0174 ] };
key <AB06> { [ b, B, iacute, Iacute ] };
key <AB07> { [ m, M, yacute, Yacute ] };
key <AB08> { [ w, W, oslash, Oslash ] };
key <AB09> { [ v, V, U1E8B, U1E8A ] };
key <AB10> { [ z, Z, U0225, U0224 ] };
key <AC12> { [ backslash, bar, ae, AE ] };
// key <JPCM> { [ ] }; // KPJPComma
// key <AE13> { [ ] }; // Yen
// key <I120> { [ ] }; // KEY_MACRO
// key <I149> { [ ] }; // KEY_SETUP
// key <I154> { [ ] }; // KEY_DELETEFILE
// key <I168> { [ ] }; // KEY_CLOSECD
// key <I178> { [ ] }; // KEY_ISO
// key <I183> { [ ] }; // KEY_MOVE
// key <I184> { [ ] }; // KEY_EDIT
// key <I217> { [ ] }; // KEY_BASSBOOST
// key <I219> { [ ] }; // KEY_HP
// key <I221> { [ ] }; // KEY_SOUND
// key <I222> { [ ] }; // KEY_QUESTION
// key <I230> { [ ] }; // KEY_ALTERASE
// key <I247> { [ ] }; // KEY_UWB
// key <I248> { [ ] }; // KEY_UNKNOWN
// key <I249> { [ ] }; // KEY_VIDEO_NEXT
// key <I250> { [ ] }; // KEY_VIDEO_PREV
// key <I251> { [ ] }; // KEY_BRIGHTNESS_CYCLE
// key <I252> { [ ] }; // KEY_BRIGHTNESS_ZERO
// key <I253> { [ ] }; // KEY_DISPLAY_OFF
// key <FK19> { [ ] }; // 197?
// key <FK24> { [ ] }; // 202?
include "level3(ralt_switch)"
include "level3(lwin_switch)"
};
I can load it with setxkbmap -I ~/.xkb/ yr -print | xkbcomp -I$HOME/.xkb - $DISPLAY and it works,
which is nice, but it's not in the xfce4-keyboard-settings and thus works until reboot.
What do I need to do to get in xfce4-keyboard-settings?
I've been told before to put the file into `/usr/share/X11/xkb/symbols/`,
but that doesn't please me as one has to edit '/usr/share/X11/xkb/rules/evdev.xml' as well
and I'm always afraid that it will get overwritten at the next update.
So I created the file `~/.xkb/rules/evdev.xml`
<layout>
<configItem>
<name>yr</name>
<shortDescription>yr</shortDescription>
<description>European (European, Dvorak)</description>
<languageList>
<iso639Id>eur</iso639Id>
</languageList>
</configItem>
<variantList/>
</layout>
..without any effect.
--- Another question ---
When I do put the keyboard in and edit evdev.xml it shows up and I can use it,
but one thing is missing.
The European flag.
Where can I choose the flag for my layout?
--- Some minor annoyances ---
I get an error when I try setting the keyboard layout this way:
[me@myComputer ~]$ setxkbmap -I ~/.xkb/ yr
Error loading new keyboard description
I get these weird warnings:
[me@myComputer ~]$ setxkbmap -I ~/.xkb/ yr -print | xkbcomp -I$HOME/.xkb - $DISPLAY
Warning: Key <OUTP> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <KITG> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <KIDN> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <KIUP> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <RO> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I192> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I193> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I194> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I195> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I196> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I255> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: No symbols defined for <AB11> (keycode 97)
Warning: No symbols defined for <JPCM> (keycode 103)
Warning: No symbols defined for <I120> (keycode 120)
Warning: No symbols defined for <AE13> (keycode 132)
Warning: No symbols defined for <I149> (keycode 149)
Warning: No symbols defined for <I154> (keycode 154)
Warning: No symbols defined for <I168> (keycode 168)
Warning: No symbols defined for <I178> (keycode 178)
Warning: No symbols defined for <I183> (keycode 183)
Warning: No symbols defined for <I184> (keycode 184)
Warning: No symbols defined for <FK19> (keycode 197)
Warning: No symbols defined for <FK24> (keycode 202)
Warning: No symbols defined for <I217> (keycode 217)
Warning: No symbols defined for <I219> (keycode 219)
Warning: No symbols defined for <I221> (keycode 221)
Warning: No symbols defined for <I222> (keycode 222)
Warning: No symbols defined for <I230> (keycode 230)
Warning: No symbols defined for <I247> (keycode 247)
Warning: No symbols defined for <I248> (keycode 248)
Warning: No symbols defined for <I249> (keycode 249)
Warning: No symbols defined for <I250> (keycode 250)
Warning: No symbols defined for <I251> (keycode 251)
Warning: No symbols defined for <I252> (keycode 252)
Warning: No symbols defined for <I253> (keycode 253)
Offline
[ Generated in 0.009 seconds, 8 queries executed - Memory usage: 557.38 KiB (Peak: 575.27 KiB) ]