I'm using Ubuntu 20.04.01.
TL;DR - Gboard on my phone cycles through languages in a way that, when you switch language, the layout changes to whatever layout you recently used (kinda like swapping tabs in VSCode). Is there any such feature on Ubuntu?
I have three keyboard layouts in use- English, Hebrew, and Japanese (MOZC). I am Bilingual and I use both English and Hebrew very often. Japanese is installed because I've recently started studying the language. I use the Japanese keyboard to type when I'm making my flashcards or when I'm practicing, but I don't use it in daily life. This means when I'm typing in English and my mom messages me in Hebrew and I wanna reply in Hebrew, it's always the same thing of I switch the language, start typing, notice it's all Japanese, erase everything, swap to Hebrew and then type it all over again.
The keyboard on my phone, Gboard, has a simple solution for this - it swaps between keyboard layouts the same way VSCode swaps between tabs - recently used last. If I turn on my phone, type in Hebrew, then swap to English and type more, the next time I press the keyboard change button It'll swap to English again. It'll only switch to Japanese if I press the keyboard change button, then press it again without typing anything.
I've been Googling for a bit now trying to figure out if such a thing exists for my computer as well, but I haven't found anything. I'd love it if anyone could give me some pointers in the direction!