From fd58682fb818da32d1b3b09b49c2bb3714656fe3 Mon Sep 17 00:00:00 2001 From: q3aql Date: Thu, 18 Nov 2021 23:10:50 +0100 Subject: [PATCH] Dotfiles config update (2021-11-18) --- fonts/install-fonts.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 fonts/install-fonts.sh diff --git a/fonts/install-fonts.sh b/fonts/install-fonts.sh new file mode 100644 index 0000000..c76221e --- /dev/null +++ b/fonts/install-fonts.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Check if you are root +mkdir -p /etc/root &> /dev/null +administrador=$? +if [ ${administrador} -eq 0 ] ; then + rm -rf /etc/root +else + echo "" + echo "* Administrator permissions are required" + echo "" + exit +fi + +# Install fonts +mkdir -p /usr/share/fonts/truetype/mononoki/ +mkdir -p /usr/share/fonts/truetype/joypixels/ +tar Jxvf joypixels-fonts.tar.xz -C /usr/share/fonts/truetype/joypixels/ +tar Jxvf mononoki-nerds-fonts.tar.xz -C /usr/share/fonts/truetype/mononoki/