Merge branch 'small-fixes' into 'master'

Some small fixes

See merge request jschx/ufetch!48
This commit is contained in:
jschx
2019-02-06 08:03:55 +00:00
32 changed files with 196 additions and 197 deletions
+5 -6
View File
@@ -10,7 +10,7 @@ os='Alpine Linux'
kernel="$(uname -sr)" kernel="$(uname -sr)"
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="$(apk info | wc -l)" packages="$(apk info | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,11 +44,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${blue}" # first color c0="${reset}${blue}" # first color
c1="${reset}${white}" # second color
## OUTPUT ## OUTPUT
+6 -6
View File
@@ -10,7 +10,7 @@ os='Antergos'
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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color c0="${reset}${bold}${blue}" # first color
c1="${reset}${bold}${white}" # second color c1="${reset}${bold}${white}" # second color
## OUTPUT ## OUTPUT
+5 -5
View File
@@ -10,7 +10,7 @@ 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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color c0="${reset}${bold}${blue}" # first color
## OUTPUT ## OUTPUT
+5 -5
View File
@@ -10,7 +10,7 @@ os='ArchBang'
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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color c0="${reset}${bold}${blue}" # first color
## OUTPUT ## OUTPUT
+5 -5
View File
@@ -10,7 +10,7 @@ os='ArcoLinux'
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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${blue}" # first color c0="${reset}${bold}${blue}" # first color
## OUTPUT ## OUTPUT
+7 -7
View File
@@ -10,7 +10,7 @@ os='Artix 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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${cyan}" # labels lc="${reset}${bold}${cyan}" # labels
nc="${reset}${bold}${cyan}" # user and hostname nc="${reset}${bold}${cyan}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${cyan}" # first color c0="${reset}${bold}${cyan}" # first color
c1="${reset}${bold}${blue}" # second color c1="${reset}${bold}${blue}" # second color
c2="${reset}${bold}${green}" # third color c2="${reset}${bold}${green}" # third color
## OUTPUT ## OUTPUT
+5 -5
View File
@@ -9,7 +9,7 @@ host=`hostname`
os=`uname -sr` os=`uname -sr`
kernel=`uname -v` kernel=`uname -v`
uptime=`uptime | awk '{print $3" "$4}' | tr -d ,` uptime=`uptime | awk '{print $3" "$4}' | tr -d ,`
shell=`basename ${SHELL}` shell=`basename "$SHELL"`
## DEFINE COLORS ## DEFINE COLORS
@@ -18,10 +18,10 @@ bold=`tput bold`
reset=`tput sgr0` reset=`tput sgr0`
# you can change these # you can change these
lc="${reset}${bold}" # labels lc="${reset}${bold}" # labels
nc="${reset}${bold}" # user and hostname nc="${reset}${bold}" # user and hostname
ic="${reset}" # info ic="${reset}" # info
c0="${reset}" # first color c0="${reset}" # first color
## OUTPUT ## OUTPUT
+8 -8
View File
@@ -10,7 +10,7 @@ os="$(cat /etc/centos-release | sed 's/release //')"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(yum list installed | wc -l)" packages="$(yum list installed | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,13 +44,13 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${magenta}" # labels lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${magenta}" # user and hostname nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color c0="${reset}${bold}${green}" # first color
c1="${reset}${bold}${yellow}" # second color c1="${reset}${bold}${yellow}" # second color
c2="${reset}${bold}${magenta}" # third color c2="${reset}${bold}${magenta}" # third color
c3="${reset}${bold}${blue}" # fourth color c3="${reset}${bold}${blue}" # fourth color
## OUTPUT ## OUTPUT
+7 -7
View File
@@ -10,7 +10,7 @@ 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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${cyan}" # labels lc="${reset}${bold}${cyan}" # labels
nc="${reset}${bold}${cyan}" # user and hostname nc="${reset}${bold}${cyan}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${cyan}" # first color c0="${reset}${cyan}" # first color
c1="${reset}${white}" # second color c1="${reset}${white}" # second color
c2="${reset}${yellow}" # third color c2="${reset}${yellow}" # third color
## OUTPUT ## OUTPUT
+7 -7
View File
@@ -10,7 +10,7 @@ os='Debian'
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${red}" # labels lc="${reset}${bold}${red}" # labels
nc="${reset}${bold}${red}" # user and hostname nc="${reset}${bold}${red}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${red}" # first color c0="${reset}${bold}${red}" # first color
c1="${reset}${red}" # second color c1="${reset}${red}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} _____ ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} _____ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} / __ \\ ${lc}OS: ${ic}${os}${reset} ${c0} / __ \\ ${lc}OS: ${ic}${os}${reset}
${c0} | / | ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} | / | ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} | ${c1}\\___- ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} | ${c1}\\___- ${lc}UPTIME: ${ic}${uptime}${reset}
+7 -7
View File
@@ -10,7 +10,7 @@ os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${green}" # labels lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color c0="${reset}${bold}${white}" # first color
c1="${reset}${white}" # second color c1="${reset}${white}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c1} _______ ${lc}${USER}${ic}@${lc}${host}${reset} ${c1} _______ ${nc}${USER}${ic}@${nc}${host}${reset}
${c1} / ${c0}____ ${c1}\\ ${lc}OS: ${ic}${os}${reset} ${c1} / ${c0}____ ${c1}\\ ${lc}OS: ${ic}${os}${reset}
${c1} / ${c0}| / /${c1}\\ ${lc}KERNEL: ${ic}${kernel}${reset} ${c1} / ${c0}| / /${c1}\\ ${lc}KERNEL: ${ic}${kernel}${reset}
${c1} |${c0}__\\ / /${c1} | ${lc}UPTIME: ${ic}${uptime}${reset} ${c1} |${c0}__\\ / /${c1} | ${lc}UPTIME: ${ic}${uptime}${reset}
+6 -6
View File
@@ -10,7 +10,7 @@ os="$(cat /etc/fedora-release)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(yum list installed | wc -l)" packages="$(yum list installed | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color c0="${reset}${bold}${white}" # first color
c1="${reset}${bold}${cyan}" # second color c1="${reset}${bold}${cyan}" # second color
## OUTPUT ## OUTPUT
+6 -6
View File
@@ -10,7 +10,7 @@ os="$(uname -sr)"
kernel="$(uname -iK)" kernel="$(uname -iK)"
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 | wc -l | sed -e 's/^[ \t]*//')" packages="$(pkg info | wc -l | sed -e 's/^[ \t]*//')"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${red}" # labels lc="${reset}${bold}${red}" # labels
nc="${reset}${bold}${red}" # user and hostname nc="${reset}${bold}${red}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${red}" # first color c0="${reset}${bold}${red}" # first color
c1="${reset}${red}" # second color c1="${reset}${red}" # second color
## OUTPUT ## OUTPUT
+6 -6
View File
@@ -10,7 +10,7 @@ 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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${magenta}" # labels lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${magenta}" # user and hostname nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${magenta}" # first color c0="${reset}${bold}${magenta}" # first color
c1="${reset}${magenta}" # second color c1="${reset}${magenta}" # second color
## OUTPUT ## OUTPUT
+7 -7
View File
@@ -9,7 +9,7 @@ host="$(hostname)"
os='Linux' # I'd just like to interject for a moment... os='Linux' # I'd just like to interject for a moment...
kernel="$(uname -sr)" kernel="$(uname -sr)"
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]*//')"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -43,12 +43,12 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${black}" # labels lc="${reset}${bold}${black}" # labels
nc="${reset}${bold}${black}" # user and hostname nc="${reset}${bold}${black}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${black}" # first color c0="${reset}${bold}${black}" # first color
c1="${reset}${white}" # second color c1="${reset}${white}" # second color
c2="${reset}${yellow}" # third color c2="${reset}${yellow}" # third color
## OUTPUT ## OUTPUT
+8 -8
View File
@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# ufetch-linuxlite - tiny system info for Linux Lite # ufetch-linuxlite - tiny system info for linux lite
## INFO ## INFO
@@ -10,7 +10,7 @@ os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${yellow}" # labels lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${yellow}" # first color c0="${reset}${bold}${yellow}" # first color
c1="${reset}${bold}${white}" # second color c1="${reset}${bold}${white}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} /\\ ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} /\\ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} / \\ ${lc}OS: ${ic}${os}${reset} ${c0} / \\ ${lc}OS: ${ic}${os}${reset}
${c0} / ${c1}/ ${c0}/ ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} / ${c1}/ ${c0}/ ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} > ${c1}/ ${c0}/ ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} > ${c1}/ ${c0}/ ${lc}UPTIME: ${ic}${uptime}${reset}
+5 -5
View File
@@ -21,7 +21,7 @@ else
packages='no package manager' packages='no package manager'
fi fi
packages="$(echo ${packages} | sed -e 's/^[ /t]*//')" packages="$(echo ${packages} | sed -e 's/^[ /t]*//')"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
WM='Quartz Compositor' WM='Quartz Compositor'
fi fi
@@ -43,10 +43,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}" # labels lc="${reset}${bold}" # labels
nc="${reset}${bold}" # user and hostname nc="${reset}${bold}" # user and hostname
ic="${reset}" # info ic="${reset}" # info
c0="${reset}" # first color c0="${reset}" # first color
## OUTPUT ## OUTPUT
+9 -8
View File
@@ -4,12 +4,13 @@
## INFO ## INFO
# user is already defined host="$(hostname)" os="$(lsb_release -ds)" # user is already defined
os="$(lsb_release -ds | tr -d \")" host="$(hostname)"
os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(yum list installed | wc -l)" packages="$(yum list installed | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -43,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color c0="${reset}${bold}${white}" # first color
c1="${reset}${bold}${cyan}" # second color c1="${reset}${bold}${cyan}" # second color
## OUTPUT ## OUTPUT
+5 -5
View File
@@ -10,7 +10,7 @@ os='Manjaro'
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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${green}" # labels lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${green}" # first color c0="${reset}${bold}${green}" # first color
## OUTPUT ## OUTPUT
+7 -7
View File
@@ -10,7 +10,7 @@ os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${green}" # labels lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color c0="${reset}${bold}${green}" # first color
c1="${reset}${bold}${white}" # second color c1="${reset}${bold}${white}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} ___________ ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} ___________ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} |_ \\ ${lc}OS: ${ic}${os}${reset} ${c0} |_ \\ ${lc}OS: ${ic}${os}${reset}
${c0} | ${c1}| _____ ${c0}| ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} | ${c1}| _____ ${c0}| ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} | ${c1}| | | | ${c0}| ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} | ${c1}| | | | ${c0}| ${lc}UPTIME: ${ic}${uptime}${reset}
+6 -6
View File
@@ -10,7 +10,7 @@ os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,16 +44,16 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${white}" # labels lc="${reset}${bold}${white}" # labels
nc="${reset}${bold}${white}" # user and hostname nc="${reset}${bold}${white}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color c0="${reset}${bold}${white}" # first color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} \\\\ / ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} \\\\ / ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} \\\\/ ${lc}OS: ${ic}${os}${reset} ${c0} \\\\/ ${lc}OS: ${ic}${os}${reset}
${c0} \\\\ ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} \\\\ ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} /\\/ \\\\ ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} /\\/ \\\\ ${lc}UPTIME: ${ic}${uptime}${reset}
+7 -7
View File
@@ -10,7 +10,7 @@ os="$(nixos-version)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
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="$(ls -d -1 /nix/store/ | wc -l)" packages="$(ls -d -1 /nix/store/ | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${blue}" # first color c0="${reset}${blue}" # first color
c1="${reset}${bold}${blue}" # second color c1="${reset}${bold}${blue}" # second color
## OUTPUT ## OUTPUT
sed 's/\\/\\\\/g' <<EOF sed 's/\\/\\\\/g' <<EOF
${c0} \\ ${c1}\\ // ${nc}${USER}${ic}@${rc}${nc}${host}${reset} ${c0} \\ ${c1}\\ // ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} ==\\___${c1}\\/ ${c0}// ${lc}OS: ${ic}${os}${reset} ${c0} ==\\___${c1}\\/ ${c0}// ${lc}OS: ${ic}${os}${reset}
${c1} // \\${c0}// ${lc}KERNEL: ${ic}${kernel}${reset} ${c1} // \\${c0}// ${lc}KERNEL: ${ic}${kernel}${reset}
${c1} ==// ${c0}//== ${lc}UPTIME: ${ic}${uptime}${reset} ${c1} ==// ${c0}//== ${lc}UPTIME: ${ic}${uptime}${reset}
+7 -7
View File
@@ -10,7 +10,7 @@ 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="$(ls -d /var/db/pkg/* | wc -l | sed -e 's/^[ \t]*//')" packages="$(ls -d /var/db/pkg/* | wc -l | sed -e 's/^[ \t]*//')"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${yellow}" # labels lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${yellow}" # first color c0="${reset}${yellow}" # first color
c1="${reset}${white}" # second color c1="${reset}${white}" # second color
c2="${reset}${bold}${yellow}" # third color c2="${reset}${bold}${yellow}" # third color
## OUTPUT ## OUTPUT
+5 -6
View File
@@ -10,7 +10,7 @@ os='Parabola GNU/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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,11 +44,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${magenta}" # labels lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${magenta}" # user and hostname nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${magenta}" # first color c0="${reset}${bold}${magenta}" # first color
c1="${reset}${magenta}" # second color
## OUTPUT ## OUTPUT
+8 -8
View File
@@ -10,7 +10,7 @@ os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,20 +44,20 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${cyan}" # labels lc="${reset}${bold}${cyan}" # labels
nc="${reset}${bold}${cyan}" # user and hostname nc="${reset}${bold}${cyan}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${cyan}" # first color c0="${reset}${bold}${cyan}" # first color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} ______ ${c0} ______
${c0} \\ _ \\ __ ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} \\ _ \\ __ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} \\ \\ \\ \\ / / ${lc}OS: ${ic}${os}${reset} ${c0} \\ \\ \\ \\ / / ${lc}OS: ${ic}${os}${reset}
${c0} \\ \\_\\ \\ / / ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} \\ \\_\\ \\ / / ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} \\ ___\\ /_/ ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} \\ ___\\ /_/ ${lc}UPTIME: ${ic}${uptime}${reset}
${c0} \\ \\ _ ${lc}PACKAGES: ${ic}${packages}${reset} ${c0} \\ \\ _ ${lc}PACKAGES: ${ic}${packages}${reset}
${c0} __\\_\\__(_)_ ${lc}SHELL: ${ic}${shell}${reset} ${c0} __\\_\\__(_)_ ${lc}SHELL: ${ic}${shell}${reset}
${c0} (___________) ${lc}${envtype} ${ic}${WM}${reset} ${c0} (___________) ${lc}${envtype} ${ic}${WM}${reset}
+6 -6
View File
@@ -10,7 +10,7 @@ os='PureOS'
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,16 +44,16 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${blue}" # labels lc="${reset}${bold}${blue}" # labels
nc="${reset}${bold}${blue}" # user and hostname nc="${reset}${bold}${blue}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${white}" # first color c0="${reset}${bold}${white}" # first color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} _____________ ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} _____________ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} | _________ | ${lc}OS: ${ic}${os}${reset} ${c0} | _________ | ${lc}OS: ${ic}${os}${reset}
${c0} | | | | ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} | | | | ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} | | | | ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} | | | | ${lc}UPTIME: ${ic}${uptime}${reset}
+7 -7
View File
@@ -10,7 +10,7 @@ os='Raspbian'
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${red}" # labels lc="${reset}${bold}${red}" # labels
nc="${reset}${bold}${red}" # user and hostname nc="${reset}${bold}${red}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color c0="${reset}${bold}${green}" # first color
c1="${reset}${bold}${red}" # second color c1="${reset}${bold}${red}" # second color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} __ __ ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} __ __ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} (_\\)(/_) ${lc}OS: ${ic}${os}${reset} ${c0} (_\\)(/_) ${lc}OS: ${ic}${os}${reset}
${c1} (_(__)_) ${lc}KERNEL: ${ic}${kernel}${reset} ${c1} (_(__)_) ${lc}KERNEL: ${ic}${kernel}${reset}
${c1} (_(_)(_)_) ${lc}UPTIME: ${ic}${uptime}${reset} ${c1} (_(_)(_)_) ${lc}UPTIME: ${ic}${uptime}${reset}
+1 -1
View File
@@ -10,7 +10,7 @@ os="$(cat /etc/slackware-version)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(ls /var/log/packages | wc -l)" packages="$(ls /var/log/packages | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
+5 -5
View File
@@ -10,7 +10,7 @@ os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(rpm -qa --last | wc -l)" packages="$(rpm -qa --last | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${green}" # labels lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color c0="${reset}${bold}${green}" # first color
## OUTPUT ## OUTPUT
+6 -6
View File
@@ -10,7 +10,7 @@ os="$(lsb_release -ds)"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,16 +44,16 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${yellow}" # labels lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${yellow}" # first color c0="${reset}${bold}${yellow}" # first color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} _ ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} _ ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} ---(_) ${lc}OS: ${ic}${os}${reset} ${c0} ---(_) ${lc}OS: ${ic}${os}${reset}
${c0} _/ --- \\ ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} _/ --- \\ ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} (_) | | ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} (_) | | ${lc}UPTIME: ${ic}${uptime}${reset}
+6 -6
View File
@@ -10,7 +10,7 @@ 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="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${green}" # labels lc="${reset}${bold}${green}" # labels
nc="${reset}${bold}${green}" # user and hostname nc="${reset}${bold}${green}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${green}" # first color c0="${reset}${bold}${green}" # first color
c1="${reset}${green}" # second color c1="${reset}${green}" # second color
## OUTPUT ## OUTPUT
+6 -6
View File
@@ -10,7 +10,7 @@ os="Voyager Live $(lsb_release -r | awk '{print $2}')"
kernel="$(uname -sr)" kernel="$(uname -sr)"
uptime="$(uptime -p | sed 's/up //')" uptime="$(uptime -p | sed 's/up //')"
packages="$(dpkg -l | wc -l)" packages="$(dpkg -l | wc -l)"
shell="$(basename ${SHELL})" shell="$(basename "$SHELL")"
if [ -z "${WM}" ]; then if [ -z "${WM}" ]; then
if [ "${XDG_CURRENT_DESKTOP}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then
@@ -44,16 +44,16 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${yellow}" # labels lc="${reset}${bold}${yellow}" # labels
nc="${reset}${bold}${yellow}" # user and hostname nc="${reset}${bold}${yellow}" # user and hostname
ic="${reset}${bold}${white}" # info ic="${reset}${bold}${white}" # info
c0="${reset}${bold}${yellow}" # first color c0="${reset}${bold}${yellow}" # first color
## OUTPUT ## OUTPUT
cat <<EOF cat <<EOF
${c0} _____ ____ ${c0} _____ ____
${c0} | | | | ${lc}${USER}${ic}@${lc}${host}${reset} ${c0} | | | | ${nc}${USER}${ic}@${nc}${host}${reset}
${c0} | | | | ${lc}OS: ${ic}${os}${reset} ${c0} | | | | ${lc}OS: ${ic}${os}${reset}
${c0} | | | | ${lc}KERNEL: ${ic}${kernel}${reset} ${c0} | | | | ${lc}KERNEL: ${ic}${kernel}${reset}
${c0} | | |____| ${lc}UPTIME: ${ic}${uptime}${reset} ${c0} | | |____| ${lc}UPTIME: ${ic}${uptime}${reset}