From a5546e93ed08d68fdade6365c8d678f9d30cd18e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 12 Nov 2022 14:45:03 +0100 Subject: [PATCH] Add script for installing fonts --- ManuSurface/setup.sh | 3 +++ scripts/PopOS/fonts.sh | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 scripts/PopOS/fonts.sh diff --git a/ManuSurface/setup.sh b/ManuSurface/setup.sh index a8406ac2..edf469fc 100644 --- a/ManuSurface/setup.sh +++ b/ManuSurface/setup.sh @@ -18,6 +18,9 @@ source "$softwareRoot/gnome-extensions.sh" source "$softwareRoot/rclone/install.sh" source "$cloudRoot/nextcloud.sh" & +# Install fonts +source "$popOSRoot/fonts.sh" + # Install surface-linux and Secure Boot source "$popOSRoot/linux-surface.sh" source "$popOSRoot/secure-boot.sh" diff --git a/scripts/PopOS/fonts.sh b/scripts/PopOS/fonts.sh new file mode 100644 index 00000000..836ffa46 --- /dev/null +++ b/scripts/PopOS/fonts.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Elevate script +if [ ! "$UID" -eq 0 ] +then + exec sudo bash "$0" "$USER" +fi + +homeDir=$(sudo -u $1 bash -c 'realpath ~') +cp "$homeDir/Nextcloud/Caskaydia Cove Regular Nerd Font Complete.otf" /usr/share/font/opentype