Cant set my xkb's xkeymap with xkbcomp
Peter Hutterer
peter.hutterer at who-t.net
Thu Dec 17 03:50:59 UTC 2020
On Wed, Dec 16, 2020 at 12:52:18AM +0200, aprekates wrote:
> Hi. I've have Debian Buster ,xorg (1:7.7+19).
>
> Trying to change xkb's xkeymap i tried :
>
> $ cd /home/foouser/.config/xkb
>
> $ setxkbmap -model hhk -layout us -print > 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)" };
> };
>
> Then supposedly i make my changes to mapus and make my changes active with:
>
> $ xkbcomp -I$HOME/.config/xkb ~/.config/xkb/mapus $DISPLAY
>
> .....
>
> Warning: Key <OUTP> not found in evdev+aliases(qwerty) keycodes
> Symbols ignored
>
> ...
>
> Warning: No symbols defined for <I149> (keycode 149)
> ....
those warnings have no effect and happen on every system. You can ignore
those.
> But testing with $ setxkbmap -print
>
> i see that my current xkeymap hasnt change . But i can change it with
> setxkbmap.
setxkbmap -print doesn't use the keymap directly as you'd expect. it uses
the RMLVO properties, changing a keymap directly with xkbcomp isn't
reflected in the setxkbmap output. so simply said: this is a false negative.
> Why xkbcomp doest seem to work?
check with xkbcomp -xkb $DISPLAY xkbmap.out and compare that file with the
keymap before and after. where xkbcomp uploads the correct data and the
server accepts everything, the file will reflect the changes you made.
Cheers,
Peter
More information about the xorg
mailing list