From 84b3cf860d4935d6b1b785d7ee243c76ef7a8824 Mon Sep 17 00:00:00 2001 From: jschx Date: Sat, 24 Mar 2018 14:01:24 -0500 Subject: [PATCH] More consistency fixes --- ufetch-alpine | 49 +++++++++++++++++++++++------------------------ ufetch-arch | 49 +++++++++++++++++++++++------------------------ ufetch-crux | 47 +++++++++++++++++++++++---------------------- ufetch-debian | 47 ++++++++++++++++++++++----------------------- ufetch-fedora | 50 +++++++++++++++++++++++------------------------- ufetch-freebsd | 46 +++++++++++++++++++++----------------------- ufetch-gentoo | 50 +++++++++++++++++++++++------------------------- ufetch-macos | 52 ++++++++++++++++++++++++-------------------------- ufetch-manjaro | 50 +++++++++++++++++++++++------------------------- ufetch-nixos | 45 +++++++++++++++++++++---------------------- ufetch-openbsd | 47 ++++++++++++++++++++++----------------------- ufetch-void | 49 +++++++++++++++++++++++------------------------ 12 files changed, 283 insertions(+), 298 deletions(-) diff --git a/ufetch-alpine b/ufetch-alpine index 140a575..334192a 100755 --- a/ufetch-alpine +++ b/ufetch-alpine @@ -1,12 +1,11 @@ #!/bin/sh # -# ufetch-alpine - tiny system info for alpine linux -# +# ufetch-alpine - tiny system info for alpine ## INFO # user is already defined -hostname="$(hostname)" +host="$(hostname)" os='Alpine Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" @@ -19,34 +18,34 @@ fi ## DEFINE COLORS # probably don't change these -bc="$(tput bold)" # bold -c0="$(tput setaf 0)" # black -c1="$(tput setaf 1)" # red -c2="$(tput setaf 2)" # green -c3="$(tput setaf 3)" # yellow -c4="$(tput setaf 4)" # blue -c5="$(tput setaf 5)" # magenta -c6="$(tput setaf 6)" # cyan -c7="$(tput setaf 7)" # white -rc="$(tput sgr0)" # reset +bold="$(tput bold)" +black="$(tput setaf 0)" +red="$(tput setaf 1)" +green="$(tput setaf 2)" +yellow="$(tput setaf 3)" +blue="$(tput setaf 4)" +magenta="$(tput setaf 5)" +cyan="$(tput setaf 6)" +white="$(tput setaf 7)" +reset="$(tput sgr0)" # you can change these -lc="${rc}${bc}${c4}" # labels -nc="${rc}${bc}${c4}" # user and hostname -ic="${rc}${bc}${c7}" # info -fc="${rc}${c4}" # first color -sc="${rc}${c7}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${blue}" # first color +c1="${reset}${white}" # second color ## OUTPUT cat < ${pc}| ${lc}KERNEL: ${ic}${kernel}${rc} -${pc} / ${c7}__ ${pc}\\ ${lc}UPTIME: ${ic}${uptime}${rc} -${pc} ( ${c7}/ \\ ${pc}/| ${lc}PACKAGES: ${ic}${packages}${rc} -${c3} _${pc}/\\ ${c7}__)${pc}/${c3}_${pc}) ${lc}SHELL: ${ic}${shell}${rc} -${c3} \/${pc}-____${c3}\/ ${lc}WM: ${ic}${WM}${rc} +${c0} ___ ${nc}${USER}${ic}@${nc}${host}${reset} +${c0} (${c1}.· ${c0}| ${lc}OS: ${ic}${os}${reset} +${c0} (${c2}<> ${c0}| ${lc}KERNEL: ${ic}${kernel}${reset} +${c0} / ${c1}__ ${c0}\\ ${lc}UPTIME: ${ic}${uptime}${reset} +${c0} ( ${c1}/ \\ ${c0}/| ${lc}PACKAGES: ${ic}${packages}${reset} +${c2} _${c0}/\\ ${c1}__)${c0}/${c2}_${c0}) ${lc}SHELL: ${ic}${shell}${reset} +${c2} \/${c0}-____${c2}\/ ${lc}WM: ${ic}${WM}${reset} EOF diff --git a/ufetch-debian b/ufetch-debian index 1e8d541..fc414d3 100755 --- a/ufetch-debian +++ b/ufetch-debian @@ -1,12 +1,11 @@ #!/bin/sh # # ufetch-debian - tiny system info for debian -# ## INFO # user is already defined -hostname="$(hostname)" +host="$(hostname)" os='Debian' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" @@ -19,34 +18,34 @@ fi ## DEFINE COLORS # probably don't change these -bc="$(tput bold)" # bold -c0="$(tput setaf 0)" # black -c1="$(tput setaf 1)" # red -c2="$(tput setaf 2)" # green -c3="$(tput setaf 3)" # yellow -c4="$(tput setaf 4)" # blue -c5="$(tput setaf 5)" # magenta -c6="$(tput setaf 6)" # cyan -c7="$(tput setaf 7)" # white -rc="$(tput sgr0)" # reset +bold="$(tput bold)" +black="$(tput setaf 0)" +red="$(tput setaf 1)" +green="$(tput setaf 2)" +yellow="$(tput setaf 3)" +blue="$(tput setaf 4)" +magenta="$(tput setaf 5)" +cyan="$(tput setaf 6)" +white="$(tput setaf 7)" +reset="$(tput sgr0)" # you can change these -lc="${rc}${bc}${c1}" # labels -nc="${rc}${bc}${c1}" # user and hostname -ic="${rc}${bc}${c7}" # info -fc="${rc}${bc}${c1}" # first color -sc="${rc}${c1}" # second color +lc="${reset}${bold}${red}" # labels +nc="${reset}${bold}${red}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${red}" # first color +c1="${reset}${red}" # second color ## OUTPUT cat <