]> git.armaanb.net Git - bin.git/blobdiff - ufetch
fix ufetch cutoff, remove extra color codes
[bin.git] / ufetch
diff --git a/ufetch b/ufetch
index dff7d01406e60bb3adec8371624a9fa8491b5476..7e961eb479b5265ed1e792ea163f6525adf03646 100755 (executable)
--- a/ufetch
+++ b/ufetch
@@ -5,19 +5,12 @@
 host="$(hostname)"
 os='Debian unstable'
 kernel="$(uname -sr)"
-uptime="$(uptime | cut -d ':' -f 1 | tail -c +2)$(uptime | echo "scale=1; $(cut -d ':' -f 2)/60" | bc ) hours"
+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'
 
@@ -32,4 +25,5 @@ ${lc}OS        ${ic}${os}${reset}
 ${lc}KERNEL    ${ic}${kernel}${reset}
 ${lc}UPTIME    ${ic}${uptime}${reset}
 ${lc}SHELL     ${ic}${shell}${reset}
-${lc}DE        ${ic}${ui}${reset}"
+${lc}DE        ${ic}${ui}${reset}
+"