<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel Ritter</title>
    <description>The latest articles on DEV Community by Daniel Ritter (@dan1707).</description>
    <link>https://dev.to/dan1707</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F339540%2F6975a875-0861-43e8-a955-463f8473eed3.png</url>
      <title>DEV Community: Daniel Ritter</title>
      <link>https://dev.to/dan1707</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dan1707"/>
    <language>en</language>
    <item>
      <title>How to enable German umlauts on US intl. keyboard in Arch Linux</title>
      <dc:creator>Daniel Ritter</dc:creator>
      <pubDate>Fri, 21 Feb 2020 13:50:53 +0000</pubDate>
      <link>https://dev.to/dan1707/how-to-enable-german-umlauts-on-us-intl-keyboard-in-arch-linux-k15</link>
      <guid>https://dev.to/dan1707/how-to-enable-german-umlauts-on-us-intl-keyboard-in-arch-linux-k15</guid>
      <description>&lt;p&gt;Some weeks ago I bought a US intl. keyboard (Cherry Stream 3.0) for my Linux workstation because as a developer I favor the US intl. layout over the german keyboard layout.&lt;br&gt;
But as a German I need to type german letters from time to time where I need those nice german umlauts for.&lt;br&gt;
Using &lt;code&gt;&amp;lt;Compose&amp;gt;&lt;/code&gt;+ &lt;code&gt;"&lt;/code&gt; + a/u/o/ss is a nightmare. So I started to look for a usable and easy solution like &lt;a href="https://pqrs.org/osx/karabiner/"&gt;Karabiner&lt;/a&gt; on Mac OS.&lt;br&gt;
Oh boy, what did know...&lt;br&gt;
I found a lot of answers in the Web on Stack Overflow, Ubuntu user groups and the Arch Linux forum.&lt;br&gt;
They were talking about adding .Xmodmap files, not using .Xmodmap files because XKb is the new kid on the block, extending an existing XKB symbols file, how to handle issues due to crashes after fiddling around with XKB symbols files and so on.&lt;br&gt;
I was convinced that either I will crash something or it won't work at all.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Nonetheless I needed an easy way to type German umlauts!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So I decided to follow the example from the following GitHub repo on how to change the US symbols file.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--566lAguM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/rgeber"&gt;
        rgeber
      &lt;/a&gt; / &lt;a href="https://github.com/rgeber/xkb-layout-us-intl-de"&gt;
        xkb-layout-us-intl-de
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Simple German Umlauts on US keyboards
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;br&gt;
It told me to add the following lines to the US symbols file.&lt;br&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;partial alphanumeric_keys
xkb_symbols "intlde" {

    include "us(basic)"
    name[Group1]= "English (US, intl., German Umlaut)";

    key &amp;lt;AC01&amp;gt; { [         a,          A,    adiaeresis,       Adiaeresis ] };
    key &amp;lt;AD07&amp;gt; { [         u,          U,    udiaeresis,       Udiaeresis ] };
    key &amp;lt;AD09&amp;gt; { [         o,          O,    odiaeresis,       Odiaeresis ] };
    key &amp;lt;AC02&amp;gt; { [         s,          S,        ssharp,          section ] };

    include "level3(ralt_switch)"
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Just out of curiosity I wanted to check first if there are other lines with &lt;em&gt;adiaeresis&lt;/em&gt; in the symbols file already.&lt;br&gt;
And to my surprise there were other lines.... And a whole section too, which described exactly what I was looking for.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// German and Swedish characters added as third level symbols to the US keyboard layout
// Author: Stephan Lachnit &amp;lt;stephanlachnit@protonmail.com&amp;gt;, 2019
// the german umlauts are placed over the characters without diaeresis, the sharp-s over the s
// the swedish ao is placed over the p, since it's closed to the position on a swedish keyboard
// the euro sign is placed over the e, as it is usual for german and swedish keyboards
partial alphanumeric_keys
xkb_symbols "de_se_fi"  {

    include "us(basic)"
    include "eurosign(e)"
    name[Group1] = "German, Swedish and Finnish (US)";

    key &amp;lt;AC01&amp;gt; {[ a,          A,          adiaeresis, Adiaeresis ]};
    key &amp;lt;AD09&amp;gt; {[ o,          O,          odiaeresis, Odiaeresis ]};
    key &amp;lt;AC02&amp;gt; {[ s,          S,          ssharp,     U1E9E      ]};
    key &amp;lt;AD07&amp;gt; {[ u,          U,          udiaeresis, Udiaeresis ]};
    key &amp;lt;AD10&amp;gt; {[ p,          P,          aring,      Aring      ]};

    include "level3(ralt_switch)"
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So instead of editing the symbols file I started to look into Gnome to understand how I could use the keyboard variant.&lt;br&gt;
At first I took a look into Gnome settings "Region &amp;amp; Language". But I could not find the keyboard variant "German, Swedish and Finnish (US)".&lt;/p&gt;

&lt;p&gt;But how was it possible that I could not find this variant?&lt;/p&gt;

&lt;p&gt;And then I remembered that whenever something was neither available nor visiblein Gnome settings then Gnome Tweaks would definitely contain a way to configure it.&lt;br&gt;
&lt;em&gt;And so I found out how to enable German umlauts on a US Intl. keyboard the easy way in Arch Linux inside Gnome.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Step 1.&lt;br&gt;
Start Gnome Tweaks and enable "Show Extended Input Sources".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zxHSw_mm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/qqluprn47d1e8vhfv4j2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zxHSw_mm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/qqluprn47d1e8vhfv4j2.png" alt="Enable Show Extended Input Sources" width="880" height="627"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2.&lt;br&gt;
Restart your Gnome session.&lt;/p&gt;

&lt;p&gt;Step 3.&lt;br&gt;
Open Gnome Settings, go to "Region &amp;amp; Language" and click on the "+" (Plus) sign under "Input Sources".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gr5hKH9v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/qoqvg97f1csalv2bl4ii.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gr5hKH9v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/qoqvg97f1csalv2bl4ii.png" alt="Alt Text" width="880" height="630"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4.&lt;br&gt;
Click on "English (United States)".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PYDs-JoH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/7ssf97hhv92xudd70hq2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PYDs-JoH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/7ssf97hhv92xudd70hq2.png" alt="Alt Text" width="466" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 5.&lt;br&gt;
Scroll down until you find the entry "German, Swedish and Finnish (US)".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bWVLE6tV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mrdhfbftg7ttz410t124.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bWVLE6tV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mrdhfbftg7ttz410t124.png" alt="Alt Text" width="466" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 6.&lt;br&gt;
Click on the entry and afterwards click on "Add".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2EfwHk93--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xd0zyzzj0ew0gz08i8xy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2EfwHk93--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xd0zyzzj0ew0gz08i8xy.png" alt="Alt Text" width="466" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It should be added now and you can start using it.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--N9z68WIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/insjepcgezc6ylnlyp83.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--N9z68WIF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/insjepcgezc6ylnlyp83.png" alt="Alt Text" width="880" height="630"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Start a terminal or editor and type &lt;code&gt;&amp;lt;Right Alt&amp;gt;+a&lt;/code&gt;. This should result in ä. Combined with Shift you get the upper-case variant.&lt;/p&gt;

&lt;p&gt;So no editing of XKB symbols files and other crazy stuff is necessary to get German umlauts!&lt;/p&gt;

&lt;p&gt;Have fun.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>xkb</category>
      <category>umlaut</category>
      <category>keyboard</category>
    </item>
  </channel>
</rss>
