]> git.armaanb.net Git - bin.git/blobdiff - ufetch
remove dpkg in ufetch, add lolcat-gen
[bin.git] / ufetch
diff --git a/ufetch b/ufetch
index d5075ff74d10d8bfcb25a55489645206221ab0c3..dff7d01406e60bb3adec8371624a9fa8491b5476 100755 (executable)
--- a/ufetch
+++ b/ufetch
@@ -2,13 +2,10 @@
 # ufetch-armaan. My customized version of ufetch that doesn't print the ascii art, and doesn't spend time looking things up like the DE. Full credit goes to jschx (Joe Schillinger), the author of ufetch. <https://gitlab.com/jschx/ufetch>
 
 ## INFO
-
-# user is already defined
-host="frost.bhojwani.org"
+host="$(hostname)"
 os='Debian unstable'
 kernel="$(uname -sr)"
-uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
-packages="$(dpkg -l | grep -c ^i)"
+uptime="$(uptime | cut -d ':' -f 1 | tail -c +2)$(uptime | echo "scale=1; $(cut -d ':' -f 2)/60" | bc ) hours"
 shell="zsh"
 ui="KDE Plasma"
 
@@ -27,14 +24,12 @@ reset='\033[0m'
 # you can change these
 lc="${reset}${bold}${white}"         # labels
 nc="${reset}${bold}${white}"         # user and hostname
-ic="${reset}"                       # info
+ic="${reset}"                        # info
 
 ## OUTPUT
-
 printf "${nc}${USER}${ic}@${nc}${host}${reset}
 ${lc}OS        ${ic}${os}${reset}
 ${lc}KERNEL    ${ic}${kernel}${reset}
 ${lc}UPTIME    ${ic}${uptime}${reset}
-${lc}PACKAGES  ${ic}${packages}${reset}
 ${lc}SHELL     ${ic}${shell}${reset}
 ${lc}DE        ${ic}${ui}${reset}"