sergei-mironov / xkb-switch

Switch your X keyboard layouts from the command line
MIT License
345 stars 37 forks source link

user local xkb configuration not recognized #68

Open Konfekt opened 1 year ago

Konfekt commented 1 year ago

After

xkbcomp -I"$XDG_CONFIG_HOME/xkb" "$XDG_CONFIG_HOME/xkb/map" "$DISPLAY"

with"$XDG_CONFIG_HOME/xkb/map" reading, say


xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)" };
    xkb_types     { include "complete"  };
    xkb_symbols   { include "pc+us(intl):1+ru(phonetic):2+inet(evdev)"  };
    xkb_geometry  { include "pc(pc105)"     };
};

then neither setxkbmap -query nor xkbswitch -l shows the loaded layouts, but instead those loaded on system startup, but they can be switched to. Does someone know why?

sergei-mironov commented 12 months ago

xkb-switch uses the X11 api to obtain the layout information, so I would suggest to check how does the server interacts with the environment.