#!/bin/sh BOLD='\033[1m' BLUE='\033[34m' NC='\033[0m' # apt ----------------------------------------------------------------------------- # create the file /etc/apt/apt.conf.d/80statusbar containing the following # DPkg::Post-Invoke {"/usr/bin/pkill -RTMIN+8 dwmblocks";}; command -v apt 1>/dev/null 2>&1 && sudo apt upgrade # void ---------------------------------------------------------------------------- # Void doesn't have post-install hooks at all, and including pkills in the package hooks isn't feasible # Instead pkill is called in this script. Manually running updates will cause the status bar to desync command -v xbps-install 1>/dev/null 2>&1 && sudo xbps-install -Syu && pkill -RTMIN+8 "${STATUSBAR:-dwmblocks}" # newversion=$(grep -oP '(?<=\* version: )\d\d\d' "$(DISPLAY=invalid "$DOTS_DIR"/.local/share/firefox/updater.sh -r 2>/dev/null | grep -oP '(?<=Warning: user.js was saved to temporary file )/tmp/tmp\.\w+\.js')") # oldversion=$(grep -oP '(?<=\* version: )\d\d\d' "$DOTS_DIR"/.local/share/firefox/user.js) # # if [ $newversion -gt $oldversion ]; then # printf "%b" "$BOLD${BLUE}Updating arkenfox...$NC\n" # "$DOTS_DIR/.local/share/firefox/updater.sh" -b # fi printf "%b" "$BOLD${BLUE}Upgrade complete.\nPress to exit window.\n" read -r _ exit