From d74369397bb9c0b82437bac23ec72e885826e75f Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Fri, 13 Nov 2020 18:02:50 -0500 Subject: [PATCH] remove dpkg in ufetch, add lolcat-gen --- lolcat-gen | 8 ++++++++ ufetch | 11 +++-------- 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100755 lolcat-gen diff --git a/lolcat-gen b/lolcat-gen new file mode 100755 index 0000000..bdfab62 --- /dev/null +++ b/lolcat-gen @@ -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 d5075ff..dff7d01 100755 --- 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. ## 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}" -- 2.39.2