Skip to content

Instantly share code, notes, and snippets.

@himalay
Created February 26, 2017 06:31
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save himalay/5c404a5f6653cb35154ceb3a6c606211 to your computer and use it in GitHub Desktop.
Save himalay/5c404a5f6653cb35154ceb3a6c606211 to your computer and use it in GitHub Desktop.
Color emoji on Arch Linux.
# create folders if does not exist
mkdir -p ~/.fonts
mkdir -p ~/.config/fontconfig/
# download noto color emoji font from https://www.google.com/get/noto/#emoji-zsye-color
# extract NotoColorEmoji.ttf file into ~/.fonts/
# create font config file
cat << 'EOF' > ~/.config/fontconfig/fonts.conf
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<match>
<test name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>serif</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family"><string>Apple Color Emoji</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
EOF
# build font information cache files
fc-cache -f -v
@nhtua
Copy link

nhtua commented Dec 4, 2020

For someone lazy

wget -O- https://gist.github.com/himalay/5c404a5f6653cb35154ceb3a6c606211/raw/b6ca198357b458c0e7ecc1ae0352de93621f8b87/color-emoji-on-linux.sh | bash

use at your own risk

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