zen-tools / gxkb

πŸ‡ΊπŸ‡¦ πŸ‡΅πŸ‡± πŸ‡±πŸ‡Ή πŸ‡ͺπŸ‡ͺ X11 keyboard indicator and switcher
https://zen-tools.github.io/gxkb
136 stars 11 forks source link

Every time I connect to a Bluetooth device it gets switched to GB layout and any other missing #47

Closed b0tm1nd closed 2 months ago

b0tm1nd commented 2 months ago

Once I connect to a Bluetooth device, all my layouts disappear and getting a GB only (which I dont even have before this happens). And need to restart to get them all back. gxkb version 0.9.3-1 on Debian 12 2024-06-20_00-39

b0tm1nd commented 2 months ago

When I was reconnecting to a Bluetooth / restarting gxkb for quite a while while writing the above message (to get all the versions and a screenshot) I ended up my configuration .config/gxkb/gxkb.cfg got reset having only a gb layout and toggle_option empty. This happened for the first time that I had to manually put back all my layouts into configuration.

zen-tools commented 2 months ago

Hi!

I did reproduce the issue, but the strange thing is the issue appears even if gxkb is not running. It's as if Xorg returns the keyboard configuration from the /etc/default/keyboard file instead of the actual keyboard configuration that you can set at any point in time using the setxkbmap command.

I will see if that can somehow be fixed on the gxkb side, but until then, you could try a workaround from this message.

b0tm1nd commented 2 months ago

Hello.

Thanks, following the workaround and editing /etc/X11/xorg.conf.d/00-keyboard.conf with my layouts/toggle and setting never_modify_config=true solved it!