zerog

[archived] simple Parabola GNU/Linux post-install script
git clone git://git.hanetzok.net/zerog
Log | Files | Refs | README | LICENSE

commit dacc0372205b1e7505b59e78d90e5cb65fda0069
parent cdd774fa0b5c1b14ec4d86bd4f517bfd3397fb02
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Mon,  7 Nov 2022 01:50:16 +0100

Change setting default fonts

Instead of sed'ing the global font config, zerog now makes use of the
per user fontconfig.

Diffstat:
Mprogs.list | 1+
Mzerog | 8+++-----
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/progs.list b/progs.list @@ -7,6 +7,7 @@ xcompmgr xwallpaper unzip ttf-ibm-plex +ttf-liberation ueberzug sxhkd bc diff --git a/zerog b/zerog @@ -26,7 +26,7 @@ error() { # Write to logfile and exit script printf "Error: $1\n" exit 1 } -prepare() { +prepare() { printf "Preparing...\n" printf "Refreshing keys...\n(This will take a while!)\n" # Refresh keyring and update keyrings @@ -39,7 +39,7 @@ prepare() { pacman -S --noconfirm --needed git zsh ca-certificates >/dev/null 2>&1 || { warning "Initial installs failed"; return 1; } # Enable parallel downloads and make pacman look nice - grep -q "ILoveCandy" /etc/pacman.conf || + grep -q "ILoveCandy" /etc/pacman.conf || sed -i "/#VerbosePkgLists/a ILoveCandy" /etc/pacman.conf sed -Ei "s/^#(ParallelDownloads).*/\1 = 5/;/^#Color$/s/#//" /etc/pacman.conf } @@ -67,7 +67,7 @@ suckless() { # Clone and install suckless programs printf "Installing $program\n" sudo -u "$name" git clone "$giturl/$program-cybvik" >/dev/null 2>&1 || { warning "Could not clone $program"; return 1; } - cd "$program" && make clean install >/dev/null 2>&1 || + cd "$program" && make clean install >/dev/null 2>&1 || { warning "Could not install $program"; return 1; } done } @@ -96,8 +96,6 @@ follow_up() { rc-update add avahi-daemon default >/dev/null rc-update add cupsd default >/dev/null rc-update add tor default >/dev/null - # Make IBM Plex Mono the default monospace font - sed -i 's/Noto Sans Mono/IBM Plex Mono/g' /etc/fonts/conf.d/60-latin.conf } ### SCRIPT ###