I am using two different keyboard layouts, English US and Hungarian. I use them interchangeably, sometimes I type in Hungarian, my native, but often I use the US layout, especially for the terminal. I usually change layout using SUPER+SPACE. I have found out that there is a way to make Ubuntu remember that individual keyboard layout settings for different windows, but this does not apply for applications.
What I would like is that even if my currently selected layout is Hungarian, whenever I fire up a terminal, it should be immediately changed to US for the terminal window, so I don't have to bother around with that.
X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 20 (X_GetProperty) Resource id in failed request: 0x4801275 Serial number of failed request: 20 Current serial number in output stream: 20 Traceback (most recent call last): File "set_language.py", line 94, in
set_lang(to_set)
NameError: name 'to_set' is not defined
– bp99 Jan 05 '17 at 18:30Well, that escalated quickly :P
– bp99 Jan 05 '17 at 19:22bash script.sh
. For 16.04 at least, there are options in Ubuntu settings there's a way to tell Ubuntu to remember different languages per window (see this: http://imgur.com/a/DbMxv) , so really you don't need a script. But if you really do want a script, feel free to look at this alternative: http://askubuntu.com/a/656671/295286 – Sergiy Kolodyazhnyy Jan 07 '17 at 12:56