sergei-mironov / xkb-switch

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

Regolith i3 #61

Closed lastgosumatt closed 2 years ago

lastgosumatt commented 2 years ago

Hello! Thank you very much for this plugin. I tried everything but this one, it seems very close to solution. I am using Regolith i3 and I tried https://github.com/zebradil/xkb-switch-i3 it tracks only window language, and doesn't track when I change language. And the xkb-group.sh us ru shows: trap: SIGINT: bad trap trap: SIGTERM: bad trap There xkb-switch v. 1.8.1

When I am trying your plugin v. 1.8.5

./xkb-switch -d [DEBUG] xkb-switch version 1.8.5 /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:110: raw layout string "us,ru,us" /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:111: raw variant string ",," [DEBUG] layout: us,ru,us [DEBUG] variant: ,, /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:127: layout "us", variant "" /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:136: ... accepting with id #0 /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:127: layout "ru", variant "" /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:136: ... accepting with id #1 /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:127: layout "us", variant "" /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:136: ... accepting with id #2 /home/lastgosu/work/xkb-switch/src/XKeyboard.cpp:127: layout "", variant ""

./xkb-switch -l
us ru us

./xkb-switch -W and -w is working

./xkb-switch -n not working

Test is failing.

Thank you for any help. Ubuntu 21.04 Regolith i3 1.6 Layouts ru-us On Gnome Ubuntu everything is the same except the test, it is passing.