Score:0

"Set" a keyboard layout by pressing Shift key

kr flag

Preamble: On Windows I use a program which allow me to set English keyboard layout on pressing Left Shift and my local keyboard layout on pressing Right Shift. Not cyclic switching is very convenient as I don't need to remember which layout is active, I only need to know in what language I'm going to write now.

Question: How do I set not cyclic but direct turning on a keyboard layout by pressing Left/Right Shift key?

Environment

Ubuntu: 22.10

GNOME: 43.0

Windowing system: Wayland

Organic Marble avatar
us flag
In this scenario, how do you type capital letters?
Ed Pavlov avatar
kr flag
Holding Shift does the work and if any other symbol was typed no layout changing performed.
Score:0
pl flag

Alternative idea:

Both shift keys cycle two layouts + Caps Lock LED On

setxkbmap -layout us,ru -option grp:shifts_toggle -option grp_led:caps

I sit in a Tesla and translated this thread with Ai:

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.