From 45b1ba0edfe98448906bd42346e4ab699eb64e8d Mon Sep 17 00:00:00 2001 From: samedamci Date: Sun, 24 May 2020 12:19:28 +0000 Subject: [PATCH] Add ufetch-devuan and fix colors on ufetch-alpine --- ufetch-alpine | 28 ++++++++---------- ufetch-devuan | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+), 16 deletions(-) create mode 100755 ufetch-devuan diff --git a/ufetch-alpine b/ufetch-alpine index 04fbe63..7bc7997 100755 --- a/ufetch-alpine +++ b/ufetch-alpine @@ -39,19 +39,16 @@ fi ## DEFINE COLORS -# probably don't change these -if [ -x "$(command -v tput)" ]; then - 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)" -fi +bold='\033[1m' +black='\033[0;30m' +red='\033[0;31m' +green='\033[0;32m' +yellow='\033[0;33m' +blue='\033[0;34m' +magenta='\033[0;35m' +cyan='\033[0;36m' +white='\033[0;37m' +reset='\033[0m' # you can change these lc="${reset}${bold}${blue}" # labels @@ -61,8 +58,7 @@ c0="${reset}${blue}" # first color ## OUTPUT -cat <