I'm running latest Pop OS using i3 as my window manager and Gnome is also installed and I have configured 00-keyboard.conf for layout (us,ru) and switching method and using gxkb as indicator.I also need to load a modified Xmodmap in i3 config for more intuitive layout.So in Gnome everything works as it should, but in i3 loading Xmodmap adds an extra keyboard tap to cycle through the layouts. For example, without xmodmap , one tap - 'us', on tap 'ru', one tap 'us' and so on. But with loaded xmodmap it takes one extra step to get back to 'us'. I don't seem to find information on this. Any ideas?
Any help would be appreciated.
P.S. It seems that gxkb stays on 'ru' while the keyboard already prints English letters. So keyboard switches two times to 'us' and then to 'ru' and layout indicator does the opposite - two times on 'ru' and then 'us'.