Ubuntu: Using ctrl as modifier to produce swedish letters å, ä & ö on us keyboard while typing


Pretty new to Linux (currently running Xubuntu). I want to be able to press Ctrl and the button where å, ä & ö would be on a Swedish keyboard. I have tried using both xbindkeys together with xte and using xdotool.

I have also tried creating keyboard shortcuts using the built in keyboard utility in Xubuntu, with both the aforementioned methods as well as trying to write my own .sh files to do the job. I have not had any success for hours now.


I want to produce å using Ctrl+[, ä using Ctrl+' & ö using Ctrl+; whilst typing regularly into anywhere that takes text.


I'd choose another approach and create a custom keyboard layout instead.

Add this to /usr/share/X11/xkb/symbols/us:

partial alphanumeric_keys  xkb_symbols "swedish" {        include "us(basic)"      name[Group1]= "English (US, with åäö)";        key <AD11> { [ bracketleft,  braceleft,  aring,       Aring      ] };      key <AC10> { [ semicolon,    colon,      odiaeresis,  Odiaeresis ] };      key <AC11> { [ apostrophe,   quotedbl,   adiaeresis,  Adiaeresis ] };        include "level3(ralt_switch)"  };  

and this to /usr/share/X11/xkb/rules/evdev.xml:

<variant>    <configItem>      <name>swedish</name>      <description>English (US, with åäö)</description>    </configItem>  </variant>  

That will let you access å, ä and ö via AltGr (RightAlt), which is the conventional way to access third and fourth level symbols.

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