diff --git a/PKGBUILD b/PKGBUILD index 783274a..63366c6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # Maintainer: Librewish pkgname=garuda-common-settings -pkgver=2.5.2 +pkgver=2.5.3 pkgrel=1 arch=('any') url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" diff --git a/usr/bin/garuda-inxi b/usr/bin/garuda-inxi index dc99182..fc04a92 100755 --- a/usr/bin/garuda-inxi +++ b/usr/bin/garuda-inxi @@ -28,13 +28,24 @@ detect_snapshots() { fi } +generate_relevant_software() { + local RELEVANT=() + systemctl is-enabled tlp &> /dev/null && RELEVANT+=("tlp") + systemctl is-active NetworkManager &> /dev/null && RELEVANT+=("NetworkManager") + systemctl is-active connman &> /dev/null && RELEVANT+=("connman") + RELEVANT_SOFTWARE="${RELEVANT[*]}" + [ -z "$RELEVANT_SOFTWARE" ] && RELEVANT_SOFTWARE="None" +} + [ -t 0 ] && inxi -Faz || inxi -Fazc0 -echo -e "\033[1;34mGaruda:\033[0m" +echo -e "\033[1;34mGaruda ($(pacman -Q garuda-common-settings | awk '{print $2}')):\033[0m" echo -e "\033[1;34m System install date:\033[0m $(head -n1 /var/log/pacman.log | cut -d " " -f1 | cut -c 2-11)" echo -e "\033[1;34m Last full system update:\033[0m $(date -r /var/lib/garuda/last_update +%F 2> /dev/null || echo "Unknown/Never")" echo -e "\033[1;34m Is partially upgraded: \033[0m $([ -e /var/lib/garuda/partial_upgrade ] && echo Yes || echo No)" -echo -e "\033[1;34m Using TLP: \033[0m $(systemctl is-enabled tlp &> /dev/null && echo Yes || echo No)" +generate_relevant_software +echo -e "\033[1;34m Relevant software: \033[0m ${RELEVANT_SOFTWARE}" detect_dual_boot &> /dev/null echo -e "\033[1;34m Windows dual boot: \033[0m ${DUALBOOT}" detect_snapshots echo -e "\033[1;34m Snapshots: \033[0m ${SNAPSHOTS}" +echo -e "\033[1;34m Failed units: \033[0m $(systemctl list-units --failed --full --all --plain --no-legend | awk '{printf("%s ",$1)}')"