]> git.armaanb.net Git - bin.git/commitdiff
remove dpkg in ufetch, add lolcat-gen
authorArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Fri, 13 Nov 2020 23:02:50 +0000 (18:02 -0500)
committerArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Fri, 13 Nov 2020 23:02:50 +0000 (18:02 -0500)
lolcat-gen [new file with mode: 0755]
ufetch

diff --git a/lolcat-gen b/lolcat-gen
new file mode 100755 (executable)
index 0000000..bdfab62
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+# Generates lolcated logo for my shell rc
+
+[[ -d ~/.local/share/zsh/lolcat/ ]] || mkdir -p ~/.local/share/zsh/lolcat
+
+for (( i = 0; i < 500; i++ )); do
+  cat ~/Code/personal-logo/ascii/ascii-small-white | lolcat --force > ~/.local/share/zsh/lolcat/$i
+done
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}"