]> git.armaanb.net Git - bin.git/blobdiff - ufetch
update system-setup
[bin.git] / ufetch
diff --git a/ufetch b/ufetch
index d5075ff74d10d8bfcb25a55489645206221ab0c3..7e961eb479b5265ed1e792ea163f6525adf03646 100755 (executable)
--- a/ufetch
+++ b/ufetch
@@ -2,39 +2,28 @@
 # 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 -p | cut -d ',' -f 1-2 | tail -c +4)"
 shell="zsh"
 ui="KDE Plasma"
 
 ## DEFINE COLORS
 bold='\033[1m'
-# black='\033[0;30m'
-# red='\033[0;31m'
-# green='\033[0;32m'
-# yellow='\033[0;33m'
-# blue='\033[0;34m'
-# magenta='\033[0;35m'
-# cyan='\033[0;36m'
 white='\033[0;37m'
 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}"
+${lc}DE        ${ic}${ui}${reset}
+"