diff --git a/ufetch-alpine b/ufetch-alpine index ea0ebe0..d9a50c1 100755 --- a/ufetch-alpine +++ b/ufetch-alpine @@ -10,7 +10,7 @@ os='Alpine Linux' kernel="$(uname -sr)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" packages="$(apk info | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,11 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -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 +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${blue}" # first color ## OUTPUT diff --git a/ufetch-antergos b/ufetch-antergos index 40ff40d..8524545 100755 --- a/ufetch-antergos +++ b/ufetch-antergos @@ -10,7 +10,7 @@ os='Antergos' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color -c1="${reset}${bold}${white}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color +c1="${reset}${bold}${white}" # second color ## OUTPUT diff --git a/ufetch-arch b/ufetch-arch index 34195d0..3d8e994 100755 --- a/ufetch-arch +++ b/ufetch-arch @@ -10,7 +10,7 @@ os='Arch Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color ## OUTPUT diff --git a/ufetch-archbang b/ufetch-archbang index 288baad..703a786 100755 --- a/ufetch-archbang +++ b/ufetch-archbang @@ -10,7 +10,7 @@ os='ArchBang' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color ## OUTPUT diff --git a/ufetch-arco b/ufetch-arco index 45c7540..59f1f6b 100755 --- a/ufetch-arco +++ b/ufetch-arco @@ -10,7 +10,7 @@ os='ArcoLinux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color ## OUTPUT diff --git a/ufetch-artix b/ufetch-artix index 1b06362..78deec2 100755 --- a/ufetch-artix +++ b/ufetch-artix @@ -10,7 +10,7 @@ os='Artix Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${cyan}" # first color -c1="${reset}${bold}${blue}" # second color -c2="${reset}${bold}${green}" # third color +lc="${reset}${bold}${cyan}" # labels +nc="${reset}${bold}${cyan}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${cyan}" # first color +c1="${reset}${bold}${blue}" # second color +c2="${reset}${bold}${green}" # third color ## OUTPUT diff --git a/ufetch-aux b/ufetch-aux index ebc888f..ba7bf24 100755 --- a/ufetch-aux +++ b/ufetch-aux @@ -9,7 +9,7 @@ host=`hostname` os=`uname -sr` kernel=`uname -v` uptime=`uptime | awk '{print $3" "$4}' | tr -d ,` -shell=`basename ${SHELL}` +shell=`basename "$SHELL"` ## DEFINE COLORS @@ -18,10 +18,10 @@ bold=`tput bold` reset=`tput sgr0` # you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color +lc="${reset}${bold}" # labels +nc="${reset}${bold}" # user and hostname +ic="${reset}" # info +c0="${reset}" # first color ## OUTPUT diff --git a/ufetch-centos b/ufetch-centos index cedf6c3..e2cb57c 100755 --- a/ufetch-centos +++ b/ufetch-centos @@ -10,7 +10,7 @@ os="$(cat /etc/centos-release | sed 's/release //')" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(yum list installed | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,13 +44,13 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${magenta}" # labels -nc="${reset}${bold}${magenta}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${green}" # first color -c1="${reset}${bold}${yellow}" # second color -c2="${reset}${bold}${magenta}" # third color -c3="${reset}${bold}${blue}" # fourth color +lc="${reset}${bold}${magenta}" # labels +nc="${reset}${bold}${magenta}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color +c1="${reset}${bold}${yellow}" # second color +c2="${reset}${bold}${magenta}" # third color +c3="${reset}${bold}${blue}" # fourth color ## OUTPUT diff --git a/ufetch-crux b/ufetch-crux index 3c8a6ba..2dd5d95 100755 --- a/ufetch-crux +++ b/ufetch-crux @@ -10,7 +10,7 @@ os="$(crux)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pkginfo -i | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${cyan}" # first color -c1="${reset}${white}" # second color -c2="${reset}${yellow}" # third color +lc="${reset}${bold}${cyan}" # labels +nc="${reset}${bold}${cyan}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${cyan}" # first color +c1="${reset}${white}" # second color +c2="${reset}${yellow}" # third color ## OUTPUT diff --git a/ufetch-debian b/ufetch-debian index b838267..9f9d6f2 100755 --- a/ufetch-debian +++ b/ufetch-debian @@ -10,7 +10,7 @@ os='Debian' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -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 +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 < ${c1}/ ${c0}/ ${lc}UPTIME: ${ic}${uptime}${reset} diff --git a/ufetch-macos b/ufetch-macos index 5b5078b..648cc34 100755 --- a/ufetch-macos +++ b/ufetch-macos @@ -21,7 +21,7 @@ else packages='no package manager' fi packages="$(echo ${packages} | sed -e 's/^[ /t]*//')" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then WM='Quartz Compositor' fi @@ -43,10 +43,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color +lc="${reset}${bold}" # labels +nc="${reset}${bold}" # user and hostname +ic="${reset}" # info +c0="${reset}" # first color ## OUTPUT diff --git a/ufetch-mageia b/ufetch-mageia index a0f67ff..450963b 100755 --- a/ufetch-mageia +++ b/ufetch-mageia @@ -4,12 +4,13 @@ ## INFO -# user is already defined host="$(hostname)" os="$(lsb_release -ds)" -os="$(lsb_release -ds | tr -d \")" +# user is already defined +host="$(hostname)" +os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(yum list installed | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -43,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${white}" # first color -c1="${reset}${bold}${cyan}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${white}" # first color +c1="${reset}${bold}${cyan}" # second color ## OUTPUT diff --git a/ufetch-manjaro b/ufetch-manjaro index 5cd780a..d09c7ed 100755 --- a/ufetch-manjaro +++ b/ufetch-manjaro @@ -10,7 +10,7 @@ os='Manjaro' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${green}" # first color +lc="${reset}${bold}${green}" # labels +nc="${reset}${bold}${green}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color ## OUTPUT diff --git a/ufetch-mint b/ufetch-mint index e17372f..7ab4c1a 100755 --- a/ufetch-mint +++ b/ufetch-mint @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then @@ -44,17 +44,17 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${green}" # first color -c1="${reset}${bold}${white}" # second color +lc="${reset}${bold}${green}" # labels +nc="${reset}${bold}${green}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color +c1="${reset}${bold}${white}" # second color ## OUTPUT cat <