After setting the keyboard layouts and switching with this command
setxkbmap -option grp:switch,grp:lwin_toggle,grp_led:scroll us,it
everything works fine (2 layouts
it, toggle between them with left super key) but when I have us layout and keep pressed the right Alt the layout switches to it until I release it, anyone knows why it is like this and how to fix?
I realize that the option "grp:switch" caused the problem. The correct command is
setxkbmap -option grp:lwin_toggle us,it