From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Thu, 26 Nov 2020 04:38:58 +0000 (-0500) Subject: ufetch show date, lolcat-gen custom number of runs X-Git-Tag: v0.0.1~83 X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=2267bee8ccedaca1fbb276390204782b5bd220bf ufetch show date, lolcat-gen custom number of runs --- diff --git a/lolcat-gen b/lolcat-gen index bdfab62..c98e4d5 100755 --- a/lolcat-gen +++ b/lolcat-gen @@ -3,6 +3,6 @@ [[ -d ~/.local/share/zsh/lolcat/ ]] || mkdir -p ~/.local/share/zsh/lolcat -for (( i = 0; i < 500; i++ )); do +for (( i = 0; i < $1 ; 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 30f25f9..a9d1744 100755 --- a/ufetch +++ b/ufetch @@ -1,20 +1,23 @@ #!/bin/sh -# 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. +# ufetch-armaan. My customized version of ufetch that doesn't print the ascii +# art, and focuses on information that changes often. Ufetch was written +# by jschx (Joe Schillinger), and is ISC licensed. +# https://gitlab.com/jschx/ufetch ## INFO host="$(cat /etc/hostname | head -n 1)" -os="$(cat /etc/os-release | head -n 1 | cut -d '"' -f 2)" +os="$(cat /etc/os-release | grep "PRETTY_NAME" | cut -d '"' -f 2)" kernel="$(uname -sr)" -uptime="$(uptime -p | cut -d ',' -f 1-2 | tail -c +4)" -shell="zsh" -ui="KDE Plasma" +uptime="$(uptime -p | sed 's/up //')" +date="$(date +%Y-%m-%e)" +time="$(date +%r)" +locip="$(ip addr | grep "/24" | cut -d ' ' -f 6)" ## DEFINE COLORS bold='\033[1m' 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 @@ -24,6 +27,6 @@ printf "${nc}${USER}${ic}@${nc}${host}${reset} ${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}DATE ${ic}${date}${reset} +${lc}TIME ${ic}${time}${reset} "