Log in

View Full Version : Super obscure Linux question, if you can answer I'll love you forever.



Kukulofori
21st August 2009, 06:19
I'm trying to make a custom keyboard layout for the language I'm making up.

Made a new file "Twi" in my folder usr/share/X11/xkb/symbols. Here's what its innards look like:



// $XKeyboardConfig: xkeyboard-config/symbols/us,v 1.45 2008-05-27 21:50:35 svu Exp $

//
// $XdotOrg: xc/programs/xkbcomp/symbols/us,v 1.1.4.3 2004/03/05 13:41:33 eich Exp $
// $XFree86: xc/programs/xkbcomp/symbols/us,v 1.6 2003/10/31 14:32:05 pascal Exp $

default
partial alphanumeric_keys modifier_keys
xkb_symbols "basic", "mac" {

include "us"
include "gr(bare)"
include "latin"

name[Group1]= "Twili";

// Alphanumeric section
key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign ] };
key <AE04> { [ 4, dollar ] };
key <AE05> { [ 5, percent ] };
key <AE06> { [ 6, asciicircum ] };
key <AE07> { [ 7, ampersand ] };
key <AE08> { [ 8, asterisk ] };
key <AE09> { [ 9, parenleft ] };
key <AE10> { [ 0, parenright ] };
key <AE11> { [ minus, underscore ] };
key <AE12> { [ equal, plus ] };

key <AD01> { [ eth, Eth ] };
key <AD02> { [ w, W ] };
key <AD03> { [ e, E ] };
key <AD04> { [ r, R ] };
key <AD05> { [ t, T ] };
key <AD06> { [ y, Y ] };
key <AD07> { [ u, U ] };
key <AD08> { [ i, Iabovedot ] };
key <AD09> { [ o, O ] };
key <AD10> { [ p, P ] };
key <AD11> { [ period, period ] };
key <AD12> { [ question, questiondown ] };

key <AC01> { [ a, A ] };
key <AC02> { [ s, S ] };
key <AC03> { [ d, D ] };
key <AC04> { [ f, F ] };
key <AC05> { [ g, G ] };
key <AC06> { [ apostraphe, apostraphe ] };
key <AC07> { [ ae, AE ] };
key <AC08> { [ k, K ] };
key <AC09> { [ idotless, +I, ] };
key <AC10> { [ bracketleft, bracketleft ] };
key <AC11> { [ bracketright, bracketright ] };

key <AB01> { [ ohorn, Ohorn ] };
key <AB02> { [ Greek_phi, Greek_PHI ] };
key <AB03> { [ ccedilla, Ccedilla ] };
key <AB04> { [ greek_omega, Greek_OMEGA ] };
key <AB05> { [ b, B ] };
key <AB06> { [ n, N ] };
key <AB07> { [ m, M ] };
key <AB08> { [ thorn, Thorn ] };
key <AB09> { [ exclamdown, exclamdown ] };
key <AB10> { [ exclam, exclam ] };

key <BKSL> { [ backslash, bar ] };
key <CAPS> { [ Caps_Lock ] };
// End alphanumeric section
};
I get an error when I try to select it in Keyboard Preferences -> layout:



Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation

X server version data:
The X.Org Foundation
10402000

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
halp