$  setxkbmap -layout us,gr,de

$ setxkbmap -print
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)"    };
    xkb_types     { include "complete"    };
    xkb_compat    { include "complete+ledscroll(group_lock)"    };
    xkb_symbols   { include "pc+us+gr:2+de:3+inet(evdev)+group(ctrl_shift_toggle)"};
    xkb_geometry  { include "hhk(basic)"    };

So setxkbmap does report current xkeymap .

And if i create an xkeymap dump and check it's symbols section:

$ xkbcomp -xkb $DISPLAY xkbmap.out

$ less xkbmap.out

xkb_symbols "pc+us+gr:2+de:3+inet(evdev)+group(ctrl_shift_toggle)" {

   name[group1]="English (US)";

    name[group2]="Greek";

    name[group3]="German";

    key  <ESC> {         [          Escape ] };

    key <AE01> {

        type[group2]= "FOUR_LEVEL",

        type[group3]= "FOUR_LEVEL",

        symbols[Group1]= [               1,          exclam ],

        symbols[Group2]= [               1,          exclam,        NoSymbol,   
  onesuperior ],

        symbols[Group3]= [               1,          exclam,     onesuperior,   
   exclamdown ]

    };

    key <AE02> {

        type[group2]= "FOUR_LEVEL",

        type[group3]= "FOUR_LEVEL",

        symbols[Group1]= [               2,              at ],

        symbols[Group2]= [               2,              at,         onehalf,   
  twosuperior ],

        symbols[Group3]= [               2,        quotedbl,     twosuperior,   
    oneeighth ]

    };

Now lets see what happens if i try to change xkeymap with loading a Kccgst description to xkbcomp:

$ less mapus

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete+ledscroll(group_lock)"        };
        xkb_symbols   { include "pc+us+inet(evdev)+group(ctrl_shift_toggle)"    };
        xkb_geometry  { include "hhk(basic)"    };
};

$  xkbcomp mapus $DISPLAY

$ xkbcomp -xkb $DISPLAY xkbmap.out

$ less xkbmap.out

xkb_symbols "pc+us+inet(evdev)+group(ctrl_shift_toggle)" {

    name[group1]="English (US)";
    name[group2]="Greek";
    name[group3]="German";

    key  <ESC> {         [          Escape ] };
    key <AE01> {         [               1,          exclam ] };
    key <AE02> {         [               2,              at ] };
    key <AE03> {         [               3,      numbersign ] };
    key <AE04> {         [               4,          dollar ] };


$ setxkbmap -print                    // still shows us,gr,de !
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)"    };
    xkb_types     { include "complete"    };
    xkb_compat    { include "complete+ledscroll(group_lock)"    };
    xkb_symbols   { include "pc+us+gr:2+de:3+inet(evdev)+group(ctrl_shift_toggle)"};
    xkb_geometry  { include "hhk(basic)"    };
};

So is this a bug?

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to