From 1b40b20e712a3b94c2a366bbbd31e8b256bfa792 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sat, 21 May 2022 09:05:39 +0200 Subject: [PATCH] =?UTF-8?q?Add=20script=20to=20install=20emoji=20font(noto?= =?UTF-8?q?-fonts-emoji)=F0=9F=98=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/installemojifont.sh | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 scripts/installemojifont.sh diff --git a/scripts/installemojifont.sh b/scripts/installemojifont.sh new file mode 100755 index 0000000..80c1f8c --- /dev/null +++ b/scripts/installemojifont.sh @@ -0,0 +1,49 @@ +#!/bin/sh +set -e +if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi +echo "Setting up Noto Emoji font..." +# 1 - install noto-fonts-emoji package +pacman -S noto-fonts-emoji --needed +# pacman -S powerline-fonts --needed +echo "Recommended system font: inconsolata regular (ttf-inconsolata or powerline-fonts)" +# 2 - add font config to /etc/fonts/conf.d/01-notosans.conf +echo " + + + + sans-serif + + Noto Sans + Noto Color Emoji + Noto Emoji + DejaVu Sans + + + + + serif + + Noto Serif + Noto Color Emoji + Noto Emoji + DejaVu Serif + + + + + monospace + + Noto Mono + Noto Color Emoji + Noto Emoji + DejaVu Sans Mono + + + + +" > /etc/fonts/local.conf +# 3 - update font cache via fc-cache +fc-cache +echo "Noto Emoji Font installed! You may need to restart applications like chrome. If chrome displays no symbols or no letters, your default font contains emojis." +echo "consider inconsolata regular" +