<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linux on /home/andrzejgor.ski</title>
    <link>https://andrzejgor.ski/categories/linux/</link>
    <description>Recent content in Linux on /home/andrzejgor.ski</description>
    <image>
      <title>/home/andrzejgor.ski</title>
      <url>https://andrzejgor.ski/metaimage.png</url>
      <link>https://andrzejgor.ski/metaimage.png</link>
    </image>
    <generator>Hugo -- 0.145.0</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 13 Jun 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://andrzejgor.ski/categories/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Compose Key</title>
      <link>https://andrzejgor.ski/posts/compose_key/</link>
      <pubDate>Tue, 13 Jun 2023 00:00:00 +0000</pubDate>
      <guid>https://andrzejgor.ski/posts/compose_key/</guid>
      <description>Compose Key is a special key on your keyboard that allows you to type special characters without mangling your keyboard settings all the time.</description>
      <content:encoded><![CDATA[<h2 id="what-is-a-compose-key">What is a Compose Key?</h2>
<p>Compose Key is a special key on your keyboard that allows you to type special characters like <code>→</code>, <code>°</code>, <code>€</code>, <code>ä</code>, <code>™</code>, <code>®</code>, <code>¿</code> and many more. It&rsquo;s very useful if you&rsquo;re writing in any foreign language that uses special characters and don&rsquo;t want to mangle your keyboard settings all the time.</p>
<h2 id="examples">Examples</h2>
<ul>
<li><kbd>Compose</kbd> + <kbd>-</kbd> + <kbd>&gt;</kbd> will produce a <code>→</code> character</li>
<li><kbd>Compose</kbd> + <kbd>o</kbd> + <kbd>o</kbd> will produce a <code>°</code> character</li>
<li><kbd>Compose</kbd> + <kbd>c</kbd> + <kbd>=</kbd> will produce a <code>€</code> character</li>
<li><kbd>Compose</kbd> + <kbd>a</kbd> + <kbd>&quot;</kbd> will produce a <code>ä</code> character</li>
<li><kbd>Compose</kbd> + <kbd>t</kbd> + <kbd>m</kbd> will produce a <code>™</code> character</li>
<li><kbd>Compose</kbd> + <kbd>r</kbd> + <kbd>o</kbd> will produce a <code>®</code> character</li>
<li><kbd>Compose</kbd> + <kbd>?</kbd> + <kbd>?</kbd> will produce a <code>¿</code> character</li>
</ul>
<p>As you can see in the examples above, the combinations are very thought out and easy to remember. Most of the time you don&rsquo;t need to know them by heart. You just have to think what two (or more) keys from the standard key set combined will give you the character that you want.</p>
<h2 id="how-to-enable-compose-key">How to enable Compose Key?</h2>
<p>As I use Gnome 3, I&rsquo;ll describe how to set it up in this environment. But don&rsquo;t worry, it can be enabled in pretty much every WM/DE.</p>
<p>So, at first you have to go to the <code>Settings</code> and then <code>Keyboard</code>:</p>
<p><img alt="Keyboard Settings screenshot" loading="lazy" src="/posts/compose_key/gnome_keyboard_settings.png"></p>
<p>Then you have to click the <code>Compose Key</code> option in the <code>Special Character Entry</code> section. There you can turn it on and choose which key you want to use as a Compose Key.</p>
<p>As you can see on the screenshot, I use the <kbd>Caps Lock</kbd> key, but choose whatever you like.</p>
<h2 id="lists-of-possible-combinations">Lists of possible combinations</h2>
<p>These two lists are the best that I found in the internet:</p>
<ol>
<li><a href="https://help.ubuntu.com/community/GtkComposeTable">GTKComposeTable</a> - rather short, very readable list of most useful combinations.</li>
<li><a href="https://cgit.freedesktop.org/xorg/lib/libX11/plain/nls/en_US.UTF-8/Compose.pre">libX11 documentation</a> - very long, hard to read but very complete list of all possible combinations.</li>
</ol>
]]></content:encoded>
    </item>
  </channel>
</rss>
