Skip to content

Instantly share code, notes, and snippets.

@arafathusayn
Last active February 16, 2025 20:55
Show Gist options
  • Save arafathusayn/3d384adfbbdfe0b6a12868e9046e9a23 to your computer and use it in GitHub Desktop.
Save arafathusayn/3d384adfbbdfe0b6a12868e9046e9a23 to your computer and use it in GitHub Desktop.
Guide to enable system-wide Emoji support on Ubuntu 🤩

1. Install Fonts

sudo apt install fonts-noto-color-emoji

2. Add Font Configuration

  • Open ~/.config/fontconfig/conf.d/01-emoji.conf file in an editor.
  • Copy-paste the lines below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>serif</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
</fontconfig>

3. Flush Font Cache

fc-cache -f -v

4. Restart the programs (e.g. web browsers)

5. Check

  • Visit this link 🧐 to check the emoji list.

6. That's it! 🤗

@seupedro
Copy link

seupedro commented Mar 3, 2024

I create a gist to facilitate the testing. You can test like this:

curl https://gist.githubusercontent.com/seupedro/6c569a59aefc2023d7767e229f90ff96/raw/486c2a57ff7b7cb733cedf0445158346438fc93c/emoiji-list-15-unicode-single-line.txt

@arafathusayn
Copy link
Author

@seupedro Thanks.

@abjl7
Copy link

abjl7 commented May 16, 2024

Thank you! Worked on Zorin OS 16.3 too.

Copy link

ghost commented May 31, 2024

works on arch linux too

@samvrao
Copy link

samvrao commented Oct 31, 2024

But how do I get the emojis while typing? Windows had an easy keyboard shortcut: Win + . (dot) Is there an equivalent here?

@pkkid
Copy link

pkkid commented Oct 31, 2024

On my system, I just press the Win key and type "elephant" or something else and the emoji shows up. Clicking this copies the character to my clipboard. If I press left to click on the "Characters" app, it opens a new window with more in depth search and filtering.
image

@samvrao
Copy link

samvrao commented Oct 31, 2024

Understood. Thank you very much Michael @pkkid

@pierrebrd
Copy link

But how do I get the emojis while typing? Windows had an easy keyboard shortcut: Win + . (dot) Is there an equivalent here?

The Emoji Copy Gnome Extension does it perfectly!

Also, on my Ubuntu 24.04, the latest version of the fonts-noto-color-emoji package doesn't work (emojis don't show anywhere), I had to install the font from Google Fonts to make it works natively (the emojis show even without the configuration file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment