Passer au contenu principal

Avoir les émojis dans Konsole

Tiré de https://gist.github.com/IgnoredAmbience/7c99b6cf9a8b73c9312a71d1209d9bbb.

  1. Installer la police Noto Color Emoji (paquet fonts-noto-color-emoji sur Debian)
  2. Mettre ceci dans ~/.config/fontconfig/conf.d/99-hack-color-emoji.conf :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Hack + Color Emoji Font Configuration.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
1. Install this file to ~/.config/fontconfig/conf.d/99-hack-color-emoji.conf
2. Run `fc-cache`
3. Set Konsole to use "Hack" as the font.
4. Restart Konsole.
-->
<fontconfig>
  <match>
    <test name="family"><string>Hack</string></test>
    <edit name="family" mode="prepend" binding="strong">
      <string>Noto Color Emoji</string>
    </edit>
  </match>
</fontconfig>
  1. Changer Hack par la police actuellement utilisée par Konsole
  2. Lancer fc-cache
  3. Redémarrer Konsole