diff --git a/.local/bin/fetch b/.local/bin/fetch index d45ccc5..7f5ab55 100755 --- a/.local/bin/fetch +++ b/.local/bin/fetch @@ -13,11 +13,12 @@ ## INFO # $USER is already defined -host="$(cat /etc/hostname)" -os='Arch Linux' +host="$(cat /etc/conf.d/hostname | awk -F'"' '{ printf $2 }')" +machine="$(cat /sys/devices/virtual/dmi/id/product_version)" +os='Gentoo' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" -packages="$(pacman -Q | wc -l)" +packages="$(printf '%s\n' /var/db/pkg/*/* | wc -l)" shell="$(basename "$SHELL")" wm="$(tail -n 1 "$XDG_CONFIG_HOME/X11/xinitrc" | cut -d ' ' -f 2)" @@ -61,20 +62,21 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${bold}${green}" # labels -nc="${bold}${red}" # user and hostname -ic="${white}" # info -a0="${blue}" # first arch color -a1="${cyan}" # second arch color +lc="${reset}${magenta}" # labels +nc="${bold}${magenta}" # user and hostname +ic="${reset}${white}" # info +a0="${bold}${magenta}" # first arch color +a1="${bold}${white}" # second arch color cat <