I am currently trying to set up my system to use two keyboard layouts and switch between with alt_shift. From this question, I obtained the following command:
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,il
This does exactly what I would like, except that the first keyboard layout that I wish to use is "us 3l" rather than just "us". The existence of a space in the name breaks the command and gives the message "Error loading new keyboard description". I tried escaping the space character, adding quotes around "us 3l", and other such things, but could not get the command to work. I also tried looking up similar such commands but couldn't find any where the layout had a space in it. Note that because of my unusual window manager (awesomewm), GUI solutions generally won't cut it, so a command line solution is preferred.
I am using Ubuntu 22.04.