Closed pvonmoradi closed 3 years ago
Hi. I agree that the error message looks weird. I'll make it more human-readable. Regarding on what could caused it. The Xkb manual says that "You can use multi-layouts xkb configuration. What does it mean? Basically it allows to load up to four different keyboard layouts at a time". But Xkb could be reconfigured on the fly, so in fact users may use 2 approaches:
Now, xkb-switch
is designed for the first case.. The fact that xkb-switch
returns 1 layout each time makes me think that you are following the second approach instead. Could you please configure Xkb to use 2 layouts: ir and us and try once again? I think you need to call setxkbmap
once with something like setxkbmap ... -layout "us,ir" ...
.
Had to
sudo apt install libsigc++-2.0-dev libxkbfile-dev
for a successful build.
libxkbfile-dev
is mentioned in the Readme. Could you please check how it goes with only this package installed? Previously no one reports about libsigc++2.0-dev
..
Now,
xkb-switch
is designed for the first case.. The fact thatxkb-switch
returns 1 layout each time makes me think that you are following the second approach instead. Could you please configure Xkb to use 2 layouts: ir and us and try once again? I think you need to callsetxkbmap
once with something likesetxkbmap ... -layout "us,ir" ...
.
Yeah, it seems your assessment is correct. I fixed the problem by setxkbmap -layout us,ir -option 'grp:alt_shift_toggle'
. (Actually, I'm using a fork of your project from this https://github.com/Zebradil/xkb-switch-i3). Anyway, it works! Thanks.
libxkbfile-dev
is mentioned in the Readme. Could you please check how it goes with only this package installed? Previously no one reports aboutlibsigc++2.0-dev
..
Sorry, that dependency was for the fork I'm using (https://github.com/Zebradil/xkb-switch-i3#installation).
OK, thats good
I've built the latest master (6cd4da9e). I'm on Xubuntu 18.04 using i3. Had to
sudo apt install libsigc++-2.0-dev libxkbfile-dev
for a successful build.Problem is, I can't change the layout from
us
to anything:de
orru
also yields similar result.Here is the script I use to change layouts:
Am I using the program correctly?