You are not logged in.

#1 2013-12-15 01:49:57

Gulver
Member
Registered: 2013-05-24
Posts: 208

Custom Xkb Layout, What am I missing? [SOLVED]

After I trashed three buttons of my onboard keyboard had to customize the layout to use some characters instead of numbers since `hey there still is numpad' smile

I also trashed the backspace and I can't find any replacement options so it'd be an extra if there is any alternative. I'm too lazy to change the 5 to g instead of 4 tongue

//Default Layout (Turkish Q)
default  partial
xkb_symbols "basic" {

    include "latin"

    name[Group1]="Turkish";

    key <AE01>  { [         1,    exclam,        greater,    exclamdown ] };
    key <AE02>  { [         2, apostrophe,      sterling,   twosuperior ] };
    key <AE03>  { [        3, asciicircum,    numbersign, threesuperior ] };
    key <AE04>  { [         g,          G,        dollar,    onequarter ] };
    key <AE06>  { [         h,          H, threequarters,    VoidSymbol ] };
    key <AE07>  { [     slash,  ampersand,     braceleft,    VoidSymbol ] };
    key <AE08>  { [         8,  parenleft,   bracketleft,    VoidSymbol ] };
    key <AE09>  { [         9, parenright,  bracketright,     plusminus ] };
    key <AE10>  { [         i,  Iabovedot,         equal,    braceright ] };
    key <AE11>  { [  asterisk,   question,     backslash,  questiondown ] };
    key <AE12>  { [     minus, underscore,           bar,    VoidSymbol ] };

    key <AD02>  { [         w,          W,   VoidSymbol,   VoidSymbol ] };
    key <AD03>  { [         e,          E,     EuroSign,   VoidSymbol ] };
    key <AD05>  { [         t,          T,    trademark,   VoidSymbol ] };
    key <AD07>  { [         u,          U,  ucircumflex,  Ucircumflex ] };
    key <AD08>  { type[group1] = "FOUR_LEVEL_ALPHABETIC",
                  [  idotless,          I,  icircumflex,  Icircumflex ] };
    key <AD09>  { [         o,          O,  ocircumflex,  Ocircumflex ] };
    key <AD10>  { [         p,          P,   VoidSymbol,   VoidSymbol ] };
    key <AD11>  { [    gbreve,     Gbreve ] };
    key <AD12>  { [udiaeresis, Udiaeresis,   asciitilde,  dead_macron ] };

    key <AC01>  { [         a,          A,  acircumflex,  Acircumflex ] };
    key <AC02>  { [         s,          S,      section,   VoidSymbol ] };
    key <AC03>  { [         d,          D,   VoidSymbol,   VoidSymbol ] };
    key <AC04>  { [         f,          F,  ordfeminine,   VoidSymbol ] };
    key <AC05>  { [ VoidSymbol, VoidSymbol,  VoidSymbol,   VoidSymbol ] };
    key <AC06>  { [ VoidSymbol, VoidSymbol,  VoidSymbol,   VoidSymbol ] };
    key <AC08>  { [         k,          K,   VoidSymbol,   VoidSymbol ] };
    key <AC09>  { [         l,          L,   VoidSymbol,   VoidSymbol ] };
    key <AC10>  { [  scedilla,   Scedilla,        acute,   dead_acute ] };
    key <AC11>  { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC",
                  [ VoidSymbol, VoidSymbol,  VoidSymbol,   VoidSymbol ] };
    key <TLDE>  { [  quotedbl,     eacute,         less,       degree ] };

    key <BKSL>  { [     comma,  semicolon,        grave,   dead_grave ] };
    key <LSGT>  { [      less,    greater,          bar,    brokenbar ] };
    key <AB08>  { [odiaeresis, Odiaeresis,     multiply,   VoidSymbol ] };
    key <AB09>  { [  ccedilla,   Ccedilla, periodcentered,     division ] };
    key <AB10>  { [    period,      colon, dead_abovedot, dead_abovedot ] };

    include "kpdl(comma)"
    include "level3(ralt_switch)"
};

I figured myself with the help of a morning coffee. If anyone copies, I changed some more buttons but.

//Default Layout (Turkish Q)
default  partial
xkb_symbols "basic" {

    include "latin"

    name[Group1]="Turkish";

    key <AE01>  { [         1,    exclam,        greater,    exclamdown ] };
    key <AE02>  { [         2, apostrophe,      sterling,   twosuperior ] };
    key <AE03>  { [        3, asciicircum,    numbersign, threesuperior ] };
    key <AE04>  { [         g,          G,    VoidSymbol,    VoidSymbol ] };
    key <AE06>  { [         6,  ampersand, threequarters,    VoidSymbol ] };
    key <AE07>  { [         h,          H,     braceleft,    VoidSymbol ] };
    key <AE08>  { [         8,  parenleft,   bracketleft,    VoidSymbol ] };
    key <AE09>  { [     slash, parenright,  bracketright,     plusminus ] };
    key <AE10>  { type[group1] = "FOUR_LEVEL_ALPHABETIC",
                  [         i,  Iabovedot,    braceright,        degree ] };
    key <AE11>  { [  asterisk,   question,     backslash,  questiondown ] };
    key <AE12>  { [     minus, underscore,         equal,    VoidSymbol ] };

    key <AD02>  { [         w,          W,   VoidSymbol,   VoidSymbol ] };
    key <AD03>  { [         e,          E,     EuroSign,   VoidSymbol ] };
    key <AD05>  { [         t,          T,    trademark,   VoidSymbol ] };
    key <AD07>  { [         u,          U,  ucircumflex,  Ucircumflex ] };
    key <AD08>  { type[group1] = "FOUR_LEVEL_ALPHABETIC",
                  [  idotless,          I,  icircumflex,  Icircumflex ] };
    key <AD09>  { [         o,          O,  ocircumflex,  Ocircumflex ] };
    key <AD10>  { [         p,          P,   VoidSymbol,   VoidSymbol ] };
    key <AD11>  { [    gbreve,     Gbreve ] };
    key <AD12>  { [udiaeresis, Udiaeresis,   asciitilde,  dead_macron ] };

    key <AC01>  { [         a,          A,  acircumflex,  Acircumflex ] };
    key <AC02>  { [         s,          S,      section,   VoidSymbol ] };
    key <AC03>  { [         d,          D,   VoidSymbol,   VoidSymbol ] };
    key <AC04>  { [         f,          F,  ordfeminine,   VoidSymbol ] };
    key <AC05>  { [         4,       plus,       dollar,   onequarter ] };
    key <AC06>  { [         7, VoidSymbol,   VoidSymbol,   VoidSymbol ] };
    key <AC08>  { [         k,          K,   VoidSymbol,   VoidSymbol ] };
    key <AC09>  { [         l,          L,   VoidSymbol,   VoidSymbol ] };
    key <AC10>  { [  scedilla,   Scedilla,        acute,   dead_acute ] };
    key <AC11>  { type[group1] = "FOUR_LEVEL_SEMIALPHABETIC",
                  [         0, VoidSymbol,   apostrophe,   dead_caron ] };
    key <TLDE>  { [  quotedbl,     eacute,         less,       degree ] };

    key <BKSL>  { [     comma,  semicolon,        grave,   dead_grave ] };
    key <LSGT>  { [      less,    greater,          bar,    brokenbar ] };
    key <AB08>  { [odiaeresis, Odiaeresis,     multiply,   VoidSymbol ] };
    key <AB09>  { [  ccedilla,   Ccedilla, periodcentered,     division ] };
    key <AB10>  { [    period,      colon, dead_abovedot, dead_abovedot ] };

    include "kpdl(comma)"
    include "level3(ralt_switch)"
};

Note: Japanese keyset contain almost every single keycode and commands if one wants a config file.

Last edited by Gulver (2013-12-15 22:14:12)

Offline

Board footer

Powered by FluxBB