Ubuntu: Switch keyboard layout for next keystroke only



Question:

I am using mainly an English keyboard layout for convenience while programming, but my main language has some letters that aren't available in that layout. Since using two different layouts is really confusing to me I decided to always use the English layout if possible. If the letter I want to type doesn't exist in the English layout I switch the layout for that one letter only.

Currently I am doing that using a keyboard shortcut to switch the layout (see here: How to switch language keyboard combination?)

So what I do is:

switch layout

hit desired key

switch layout back to English

It would be much more convenient to have the layout switch back after one keystroke automatically.

Does anyone have an idea how I could do that?


Solution:1

Ja, natürlich! ;-)

Just use the English (US Alternative International) keyboard … Most Western-European (including German) letters except some really funny characters like ß, Æ, å, ø, and þ can be typed this way by using "dead" keys: to type ü just type " and u and it will result in ü. The only disadvantage is that while programming you'll have to type "" and '' and go back with ← to then fill in the strings.

This is because if you try to type "a string", it will result in ä string" …

You'll get used to this within a week or immediately depending on how you type strings already! ;-)

äëïÿöüçéè, … will pose no problems whatsoever!


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »