Consistency fixes.

This commit is contained in:
jsch committed 2017-05-06 00:38:23 -05:00
1 parent fd9c957d0c
commit 30da87aa1d
7 files changed
+157 -155

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
# ufetch # ufetch
Tiny system info for Linux distributions and \*BSDs. Tiny system info for Linux distributions and \*BSDs.
+23 -23
View File
@@ -1,25 +1,25 @@
#!/bin/sh #!/bin/sh
# #
# ufetch-void - tiny system info for void # ufetch-alpine - tiny system info for alpine linux
# #
## INFO ## INFO
# user is already defined # user is already defined
HOST="$(hostname)" hostname="$(hostname)"
OS="Alpine Linux" os='Alpine Linux'
KERNEL="$(uname -sr)" kernel="$(uname -sr)"
UPTIME="$(uptime -p | sed s:"up "::)" uptime="$(uptime -p | sed 's/up //')"
PACKAGES="$(apk info | wc -l)" packages="$(apk info | wc -l)"
# shell is already defined shell="$(basename ${SHELL})"
if [ -z "$WM" ]; then if [ -z "${WM}" ]; then
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)" WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
fi fi
## DEFINE COLORS ## DEFINE COLORS
# probably don't change these # probably don't change these
bc="$(tput bold)" # bold bc="$(tput bold)" # bold
c0="$(tput setaf 0)" # black c0="$(tput setaf 0)" # black
c1="$(tput setaf 1)" # red c1="$(tput setaf 1)" # red
c2="$(tput setaf 2)" # green c2="$(tput setaf 2)" # green
@@ -28,25 +28,25 @@ c4="$(tput setaf 4)" # blue
c5="$(tput setaf 5)" # magenta c5="$(tput setaf 5)" # magenta
c6="$(tput setaf 6)" # cyan c6="$(tput setaf 6)" # cyan
c7="$(tput setaf 7)" # white c7="$(tput setaf 7)" # white
rc="$(tput sgr0)" # reset rc="$(tput sgr0)" # reset
# you can change these # you can change these
lc="${bc}${c4}" # labels lc="${rc}${bc}${c4}" # labels
nc="${bc}${c4}" # user and hostname nc="${rc}${bc}${c4}" # user and hostname
tc="${bc}${c7}" # text ic="${rc}${bc}${c7}" # info
fc="${bc}${c2}" # first color fc="${rc}${c4}" # first color
sc="${c2}" # second color sc="${rc}${c7}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${fc}${c4} /\ /\ ${nc}${USER}${tc}@${nc}${HOST}${rc} ${fc} /\ /\ ${nc}${USER}${ic}@${nc}${hostname}${rc}
${sc}${c4} /${c7}/${c4} \ \ ${lc}OS: ${tc}${OS}${rc} ${fc} /${sc}/${fc} \ \ ${lc}OS: ${ic}${os}${rc}
${sc}${c4} /${c7}/${c4} \ \ ${lc}KERNEL: ${tc}${KERNEL}${rc} ${fc} /${sc}/${fc} \ \ ${lc}KERNEL: ${ic}${kernel}${rc}
${sc}${c4} /${c7}//${c4} \ \ ${lc}UPTIME: ${tc}${UPTIME}${rc} ${fc} /${sc}//${fc} \ \ ${lc}UPTIME: ${ic}${uptime}${rc}
${sc}${c4} ${c7}//${c4} \ \ ${lc}PACKAGES: ${tc}${PACKAGES}${rc} ${fc} ${sc}//${fc} \ \ ${lc}PACKAGES: ${ic}${packages}${rc}
${sc}${c4} \ \ ${lc}SHELL: ${tc}${SHELL}${rc} ${fc} \ \ ${lc}SHELL: ${ic}${shell}${rc}
${sc}${c4} \ ${lc}WM: ${tc}${WM}${rc} ${fc} \ ${lc}WM: ${ic}${WM}${rc}
EOF EOF
+23 -23
View File
@@ -1,25 +1,25 @@
#!/bin/sh #!/bin/sh
# #
# ufetch-arch - tiny system info for arch # ufetch-arch - tiny system info for arch linux
# #
## INFO ## INFO
# user is already defined # user is already defined
HOST="$(hostname)" hostname="$(hostname)"
OS="Arch Linux" os='Arch Linux'
KERNEL="$(uname -sr)" kernel="$(uname -sr)"
UPTIME="$(uptime -p | sed s:"up "::)" uptime="$(uptime -p | sed 's/up //')"
PACKAGES="$(pacman -Q | wc -l)" packages="$(pacman -Q | wc -l)"
# shell is already defined shell="$(basename ${SHELL})"
if [ -z "$WM" ]; then if [ -z "${WM}" ]; then
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)" WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
fi fi
## DEFINE COLORS ## DEFINE COLORS
# probably don't change these # probably don't change these
bc="$(tput bold)" # bold bc="$(tput bold)" # bold
c0="$(tput setaf 0)" # black c0="$(tput setaf 0)" # black
c1="$(tput setaf 1)" # red c1="$(tput setaf 1)" # red
c2="$(tput setaf 2)" # green c2="$(tput setaf 2)" # green
@@ -28,25 +28,25 @@ c4="$(tput setaf 4)" # blue
c5="$(tput setaf 5)" # magenta c5="$(tput setaf 5)" # magenta
c6="$(tput setaf 6)" # cyan c6="$(tput setaf 6)" # cyan
c7="$(tput setaf 7)" # white c7="$(tput setaf 7)" # white
rc="$(tput sgr0)" # reset rc="$(tput sgr0)" # reset
# you can change these # you can change these
lc="${bc}${c6}" # labels lc="${rc}${bc}${c6}" # labels
nc="${bc}${c6}" # user and hostname nc="${rc}${bc}${c6}" # user and hostname
tc="${bc}${c7}" # text ic="${rc}${bc}${c7}" # info
fc="${bc}${c6}" # first color fc="${rc}${bc}${c6}" # first color
sc="${c6}" # second color sc="${rc}${c6}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${fc} /\\${rc} ${nc}${USER}${rc}${tc}@${rc}${nc}${HOST}${rc} ${fc} /\ ${nc}${USER}${ic}@${nc}${hostname}${rc}
${fc} /^^\\${rc} ${lc}OS:${rc} ${tc}${OS}${rc} ${fc} /^^\ ${lc}OS: ${ic}${os}${rc}
${fc} /\ \\${rc} ${lc}KERNEL:${rc} ${tc}${KERNEL}${rc} ${fc} /\ \ ${lc}KERNEL: ${ic}${kernel}${rc}
${fc} /${rc} ${sc}__ \\${rc} ${lc}UPTIME:${rc} ${tc}${UPTIME}${rc} ${fc} / ${sc}__ \ ${lc}UPTIME: ${ic}${uptime}${rc}
${sc} / ( ) \\${rc} ${lc}PACKAGES:${rc} ${tc}${PACKAGES}${rc} ${sc} / ( ) \ ${lc}PACKAGES: ${ic}${packages}${rc}
${sc} / __| |__\\\\${rc} ${lc}SHELL:${rc} ${tc}${SHELL}${rc} ${sc} / __| |__\\\\ ${lc}SHELL: ${ic}${shell}${rc}
${sc} /// \\\\\\${rc} ${lc}WM:${rc} ${tc}${WM}${rc} ${sc} /// \\\\\ ${lc}WM: ${ic}${WM}${rc}
EOF EOF
+21 -21
View File
@@ -6,20 +6,20 @@
## INFO ## INFO
# user is already defined # user is already defined
HOST="$(hostname)" hostname="$(hostname)"
OS="$(crux)" os="$(crux)"
KERNEL="$(uname -sr)" kernel="$(uname -sr)"
UPTIME="$(uptime -p | sed s:"up "::)" uptime="$(uptime -p | sed 's/up //')"
PACKAGES="$(pkginfo -i | wc -l)" packages="$(pkginfo -i | wc -l)"
# shell is already defined shell="$(basename ${SHELL})"
if [ -z "$WM" ]; then if [ -z "${WM}" ]; then
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)" WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
fi fi
## DEFINE COLORS ## DEFINE COLORS
# probably don't change these # probably don't change these
bc="$(tput bold)" # bold bc="$(tput bold)" # bold
c0="$(tput setaf 0)" # black c0="$(tput setaf 0)" # black
c1="$(tput setaf 1)" # red c1="$(tput setaf 1)" # red
c2="$(tput setaf 2)" # green c2="$(tput setaf 2)" # green
@@ -28,24 +28,24 @@ c4="$(tput setaf 4)" # blue
c5="$(tput setaf 5)" # magenta c5="$(tput setaf 5)" # magenta
c6="$(tput setaf 6)" # cyan c6="$(tput setaf 6)" # cyan
c7="$(tput setaf 7)" # white c7="$(tput setaf 7)" # white
rc="$(tput sgr0)" # reset rc="$(tput sgr0)" # reset
# you can change these # you can change these
lc="${bc}${c6}" # labels lc="${rc}${bc}${c6}" # labels
nc="${bc}${c6}" # user and hostname nc="${rc}${bc}${c6}" # user and hostname
tc="${bc}${c7}" # text ic="${rc}${bc}${c7}" # info
pc="${c6}" # penguin pc="${rc}${c6}" # penguin
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${pc} ___${rc} ${nc}${USER}${rc}${tc}@${rc}${nc}${HOST}${rc} ${pc} ___ ${nc}${USER}${ic}@${nc}${hostname}${rc}
${pc} (${rc}${c7}.·${rc} ${pc}|${rc} ${lc}OS:${rc} ${tc}${OS}${rc} ${pc} (${c7}.· ${pc}| ${lc}OS: ${ic}${os}${rc}
${pc} (${rc}${c3}<>${rc} ${pc}|${rc} ${lc}KERNEL:${rc} ${tc}${KERNEL}${rc} ${pc} (${c3}<> ${pc}| ${lc}KERNEL: ${ic}${kernel}${rc}
${pc} /${rc} ${c7}__${rc} ${pc}\\${rc} ${lc}UPTIME:${rc} ${tc}${UPTIME}${rc} ${pc} / ${c7}__ ${pc}\\ ${lc}UPTIME: ${ic}${uptime}${rc}
${pc} (${rc} ${c7}/ \\${rc} ${pc}/|${rc} ${lc}PACKAGES:${rc} ${tc}${PACKAGES}${rc} ${pc} ( ${c7}/ \\ ${pc}/| ${lc}PACKAGES: ${ic}${packages}${rc}
${c3} _${pc}/\\${rc} ${c7}__)${rc}${pc}/${rc}${c3}_${rc}${pc})${rc} ${lc}SHELL:${rc} ${tc}${SHELL}${rc} ${c3} _${pc}/\\ ${c7}__)${pc}/${c3}_${pc}) ${lc}SHELL: ${ic}${shell}${rc}
${c3} \/${pc}-____${rc}${c3}\/${rc} ${lc}WM:${rc} ${tc}${WM}${rc} ${c3} \/${pc}-____${c3}\/ ${lc}WM: ${ic}${WM}${rc}
EOF EOF
+34 -33
View File
@@ -1,54 +1,55 @@
#!/bin/sh #!/bin/sh
# #
# ufetch-gentoo - tiny system info for gentoo # ufetch-gentoo - tiny system info for gentoo linux
# #
## INFO ## INFO
# user is already defined # user is already defined
HOST="$(hostname)" host="$(hostname)"
OS='Gentoo Linux' os='Gentoo Linux'
KERNEL="$(uname -sr)" kernel="$(uname -sr)"
UPTIME="$(uptime -p | sed s:'up ':'':)" uptime="$(uptime -p | sed 's/up //')"
PACKAGES="$(ls -d /var/db/pkg/*/* | wc -l)" packages="$(ls -d /var/db/pkg/*/* | wc -l)"
# shell is already defined shell="$(basename ${SHELL})"
if [ -z "$WM" ]; then if [ -z "${WM}" ]; then
WM=$(tail -n 1 "$HOME/.xinitrc" | cut -d ' ' -f3) WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
fi fi
CPU="$(uname -p)" cpu="$(uname -p)"
## DEFINE COLORS ## DEFINE COLORS
rc=$(tput sgr0) # reset # probably don't change these
c0=$(tput setaf 0) # black bc="$(tput bold)" # bold
c1=$(tput setaf 1) # red c0="$(tput setaf 0)" # black
c2=$(tput setaf 2) # green c1="$(tput setaf 1)" # red
c3=$(tput setaf 3) # yellow c2="$(tput setaf 2)" # green
c4=$(tput setaf 4) # blue c3="$(tput setaf 3)" # yellow
c5=$(tput setaf 5) # magenta c4="$(tput setaf 4)" # blue
c6=$(tput setaf 6) # cyan c5="$(tput setaf 5)" # magenta
c7=$(tput setaf 7) # white c6="$(tput setaf 6)" # cyan
bc=$(tput bold) # bold c7="$(tput setaf 7)" # white
rc="$(tput sgr0)" # reset
# you can change these # you can change these
lc=${c5} # labels lc="${rc}${bc}${c5}" # labels
nc=${c5} # user and hostname nc="${rc}${bc}${c5}" # user and hostname
tc=${rc} # text ic="${rc}${bc}${c7}" # info
pc=${bc}${c5} # primary color fc="${rc}${bc}${c5}" # first color
sc=${c5} # secondary color sc="${rc}${c5}" # second color
## OUTPUT ## OUTPUT
# art from gentoo prefix project's bootstrap-prefix.sh # art from gentoo prefix project's bootstrap-prefix.sh
cat <<EOF cat <<EOF
${pc} .vir.${rc} ${nc}${USER}${rc}${tc}@${rc}${nc}${HOST}${rc} ${fc} .vir. ${nc}${USER}${ic}@${nc}${host}${rc}
${pc} .d\$\$\$\$${rc}${sc}\$\$b.${rc} ${lc}OS:${rc} ${tc}${OS}${rc} ${fc} .d\$\$\$\$${sc}\$\$b. ${lc}OS: ${ic}${os}${rc}
${pc} \$\$\$\$${rc}${sc}( )${rc}${pc}\$${rc}${sc}\$\$b${rc} ${lc}KERNEL:${rc} ${tc}${KERNEL}${rc} ${fc} \$\$\$\$${sc}( )${pc}\$${sc}\$\$b ${lc}KERNEL: ${ic}${kernel}${rc}
${pc} Q\$\$\$\$\$\$\$\$${rc}${sc}\$\$B${rc} ${lc}UPTIME:${rc} ${tc}${UPTIME}${rc} ${fc} Q\$\$\$\$\$\$\$\$${sc}\$\$B ${lc}UPTIME: ${ic}${uptime}${rc}
${pc} "\$\$\$\$\$${rc}${sc}\$\$P${rc} ${lc}PACKAGES:${rc} ${tc}${PACKAGES}${rc} ${fc} "\$\$\$\$\$${sc}\$\$P ${lc}PACKAGES: ${ic}${packages}${rc}
${pc} d\$\$\$\$${rc}${sc}\$\$P"${rc} ${lc}SHELL:${rc} ${tc}${SHELL}${rc} ${fc} d\$\$\$\$${sc}\$\$P" ${lc}SHELL: ${ic}${shell}${rc}
${pc} \$\$\$\$\$${rc}${sc}\$\$P${rc} ${lc}WM:${rc} ${tc}${WM}${rc} ${fc} \$\$\$\$\$${sc}\$\$P ${lc}WM: ${ic}${WM}${rc}
${pc} \`Q\$\$${rc}${sc}P"${rc} ${lc}CPU: ${tc}${CPU}${rc} ${fc} \`Q\$\$${sc}P" ${lc}CPU: ${ic}${cpu}${rc}
EOF EOF
+32 -31
View File
@@ -6,48 +6,49 @@
## INFO ## INFO
# user is already defined # user is already defined
HOST="$(hostname)" host="$(hostname)"
OS="$(uname -sr)" os="$(uname -sr)"
KERNEL="$(uname -v)" kernel="$(uname -v)"
UPTIME="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
PACKAGES="$(pkg_info -A | wc -l | sed -e 's/^[ \t]*//')" packages="$(pkg_info -A | wc -l | sed -e 's/^[ \t]*//')"
# shell is already defined shell="$(basename ${SHELL})"
if [ -z "$WM" ]; then if [ -z "${WM}" ]; then
WM=$(tail -n 1 "$HOME/.xinitrc" | cut -d ' ' -f 2) WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
fi fi
## DEFINE COLORS ## DEFINE COLORS
rc=$(tput sgr0) # reset # probably don't change these
c0=$(tput setaf 0) # black bc="$(tput bold)" # bold
c1=$(tput setaf 1) # red c0="$(tput setaf 0)" # black
c2=$(tput setaf 2) # green c1="$(tput setaf 1)" # red
c3=$(tput setaf 3) # yellow c2="$(tput setaf 2)" # green
c4=$(tput setaf 4) # blue c3="$(tput setaf 3)" # yellow
c5=$(tput setaf 5) # magenta c4="$(tput setaf 4)" # blue
c6=$(tput setaf 6) # cyan c5="$(tput setaf 5)" # magenta
c7=$(tput setaf 7) # white c6="$(tput setaf 6)" # cyan
bc=$(tput bold) # bold c7="$(tput setaf 7)" # white
rc="$(tput sgr0)" # reset
# you can change these # you can change these
lc=${rc}${bc}${c3} # labels lc="${rc}${bc}${c3}" # labels
nc=${rc}${bc}${c3} # user and hostname nc="${rc}${bc}${c3}" # user and hostname
ic=${rc} # info ic="${rc}${bc}${c7}" # info
fc=${rc}${c3} # first color fc="${rc}${c3}" # first color
sc=${rc}${c7} # second color sc="${rc}${c7}" # second color
tc=${rc}${bc}${c3} # third color tc="${rc}${bc}${c3}" # third color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${fc} _____ ${nc}${USER}${ic}@${nc}${HOST}${rc} ${fc} _____ ${nc}${USER}${ic}@${nc}${host}${rc}
${fc} \- -/ ${lc}OS: ${ic}${OS}${rc} ${fc} \- -/ ${lc}OS: ${ic}${os}${rc}
${fc} \_/ \ ${lc}KERNEL: ${ic}${KERNEL}${rc} ${fc} \_/ \ ${lc}KERNEL: ${ic}${kernel}${rc}
${fc} | ${sc}O O${fc} | ${lc}UPTIME: ${ic}${UPTIME}${rc} ${fc} | ${sc}O O${fc} | ${lc}UPTIME: ${ic}${uptime}${rc}
${fc} |_ ${tc}< ${fc}) ${tc}3 ${fc}) ${lc}PACKAGES: ${ic}${PACKAGES}${rc} ${fc} |_ ${tc}< ${fc}) ${tc}3 ${fc}) ${lc}PACKAGES: ${ic}${packages}${rc}
${fc} / \ / ${lc}SHELL: ${ic}${SHELL}${rc} ${fc} / \ / ${lc}SHELL: ${ic}${shell}${rc}
${fc} /-_____-\ ${lc}WM: ${ic}${WM}${rc} ${fc} /-_____-\ ${lc}WM: ${ic}${WM}${rc}
EOF EOF
+23 -23
View File
@@ -1,25 +1,25 @@
#!/bin/sh #!/bin/sh
# #
# ufetch-void - tiny system info for void # ufetch-void - tiny system info for void linux
# #
## INFO ## INFO
# user is already defined # user is already defined
HOST="$(hostname)" hostname="$(hostname)"
OS="Void Linux" os='Void Linux'
KERNEL="$(uname -sr)" kernel="$(uname -sr)"
UPTIME="$(uptime -p | sed s:"up "::)" uptime="$(uptime -p | sed 's/up //')"
PACKAGES="$(xbps-query -l | wc -l)" packages="$(xbps-query -l | wc -l)"
# shell is already defined shell="$(basename ${SHELL})"
if [ -z "$WM" ]; then if [ -z "${WM}" ]; then
WM="$(grep -v "^#" "${HOME}/.xinitrc" | tail -n 1 | cut -d " " -f2)" WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
fi fi
## DEFINE COLORS ## DEFINE COLORS
# probably don't change these # probably don't change these
bc="$(tput bold)" # bold bc="$(tput bold)" # bold
c0="$(tput setaf 0)" # black c0="$(tput setaf 0)" # black
c1="$(tput setaf 1)" # red c1="$(tput setaf 1)" # red
c2="$(tput setaf 2)" # green c2="$(tput setaf 2)" # green
@@ -28,25 +28,25 @@ c4="$(tput setaf 4)" # blue
c5="$(tput setaf 5)" # magenta c5="$(tput setaf 5)" # magenta
c6="$(tput setaf 6)" # cyan c6="$(tput setaf 6)" # cyan
c7="$(tput setaf 7)" # white c7="$(tput setaf 7)" # white
rc="$(tput sgr0)" # reset rc="$(tput sgr0)" # reset
# you can change these # you can change these
lc="${bc}${c2}" # labels lc="${rc}${bc}${c2}" # labels
nc="${bc}${c2}" # user and hostname nc="${rc}${bc}${c2}" # user and hostname
tc="${bc}${c7}" # text ic="${rc}${bc}${c7}" # info
fc="${bc}${c2}" # first color fc="${rc}${bc}${c2}" # first color
sc="${c2}" # second color sc="${rc}${c2}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${fc} _______ ${nc}${USER}${tc}@${nc}${HOST}${rc} ${fc} _______ ${nc}${USER}${ic}@${nc}${hostname}${rc}
${sc} _ ${fc}\______ - ${lc}OS: ${tc}${OS}${rc} ${sc} _ ${fc}\______ \ ${lc}OS: ${ic}${os}${rc}
${sc} | \ ${fc}___ \ | ${lc}KERNEL: ${tc}${KERNEL}${rc} ${sc} | \ ${fc}___ \ | ${lc}KERNEL: ${ic}${kernel}${rc}
${sc} | | ${fc}/ \ | | ${lc}UPTIME: ${tc}${UPTIME}${rc} ${sc} | | ${fc}/ \ | | ${lc}UPTIME: ${ic}${uptime}${rc}
${sc} | | ${fc}\___/ | | ${lc}PACKAGES: ${tc}${PACKAGES}${rc} ${sc} | | ${fc}\___/ | | ${lc}PACKAGES: ${ic}${packages}${rc}
${sc} | \______ ${fc}\_| ${lc}SHELL: ${tc}${SHELL}${rc} ${sc} | \______ ${fc}\_| ${lc}SHELL: ${ic}${shell}${rc}
${sc} -_______\ ${lc}WM: ${tc}${WM}${rc} ${sc} \_______\ ${lc}WM: ${ic}${WM}${rc}
EOF EOF