Score:1

setxkbmap with alt-shift-toggle option for >1 keyboard layout where layout has name with > 1 word

io flag

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.

Benyamin avatar
io flag
@guiverc I added the OS version. Adding quotes around "grp:switch... us 3l, il" had the command finish without error but not do anything. Adding quotes around the entire command from the beginning declared that the command was not found.
Score:2
uz flag

3l is a layout variant. Try this:

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll -layout us,il -variant 3l,
Benyamin avatar
io flag
This did it. Thank you!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.