<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>$ setxkbmap -layout us,gr,de<br>
</p>
$ setxkbmap -print<br>
xkb_keymap {<br>
xkb_keycodes { include "evdev+aliases(qwerty)" };<br>
xkb_types { include "complete" };<br>
xkb_compat { include "complete+ledscroll(group_lock)" };<br>
xkb_symbols { include
"pc+us+gr:2+de:3+inet(evdev)+group(ctrl_shift_toggle)"};<br>
xkb_geometry { include "hhk(basic)" };<br>
<p>So setxkbmap does report current xkeymap .</p>
<p>And if i create an xkeymap dump and check it's symbols section:</p>
<p>$ xkbcomp -xkb $DISPLAY xkbmap.out</p>
<p>$ less xkbmap.out<br>
</p>
<pre>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 ]
};</pre>
<p>Now lets see what happens if i try to change xkeymap with loading
a Kccgst description to xkbcomp:<br>
</p>
<p>$ less mapus</p>
<p>xkb_keymap {<br>
xkb_keycodes { include "evdev+aliases(qwerty)" };<br>
xkb_types { include "complete" };<br>
xkb_compat { include
"complete+ledscroll(group_lock)" };<br>
xkb_symbols { include
"pc+us+inet(evdev)+group(ctrl_shift_toggle)" };<br>
xkb_geometry { include "hhk(basic)" };<br>
};</p>
<p>$ xkbcomp mapus $DISPLAY<br>
</p>
<p>$ xkbcomp -xkb $DISPLAY xkbmap.out
</p>
<p>$ less xkbmap.out</p>
<pre>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 ] };</pre>
<p><br>
</p>
<p>$ setxkbmap -print // still shows us,gr,de !<br>
xkb_keymap {<br>
xkb_keycodes { include "evdev+aliases(qwerty)" };<br>
xkb_types { include "complete" };<br>
xkb_compat { include "complete+ledscroll(group_lock)" };<br>
xkb_symbols { include
"pc+us+gr:2+de:3+inet(evdev)+group(ctrl_shift_toggle)"};<br>
xkb_geometry { include "hhk(basic)" };<br>
};<br>
</p>
<p>So is this a bug?<br>
</p>
</body>
</html>