fakefetch

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dab79f706832ab4cc676f8e8078a955a7386201e
parent eea6c1258e073e57d85257d44563c630822e7878
Author: Shipwreckt <conbur@protonmail.com>
Date:   Wed, 14 Feb 2024 21:55:35 +0000

Awesome colour update !
Needs more colour though
Diffstat:
Mfakefetch.sh | 157+++++++++++++++++++++++++++++++++++++++++--------------------------------------
1 file changed, 81 insertions(+), 76 deletions(-)

diff --git a/fakefetch.sh b/fakefetch.sh @@ -23,10 +23,15 @@ # yourself I've left comments on how to do this. #Help with colours https://www.ditig.com/publications/256-colors-cheat-sheet - -PURPLE='\033[38;5;92m' #replace the 92 with whatever colour you want +PURPLE='\033[38;5;92m' MAGENTA='\033[38;5;98m' -RESET='\033[0m' + +BLUE='\033[38;5;33m' +DBLUE='\033[38;5;27m' + +#Add more colours :0 also update website when you can please +Text=$BLUE +Background=$DBLUE #----------------------------------------------------------------------------------# # Variables # @@ -47,7 +52,7 @@ HOSTNAME=$(uname -n) DISTRO=$(lsb_release -sd | sed 's/"//g') get_distro_info() { - echo "OS → ${MAGENTA}${DISTRO}" + echo "OS → ${Text}${DISTRO}" } @@ -56,7 +61,7 @@ CPU_INFO=$(lscpu | grep 'Model name' | awk '{$1=$2=""; print $0}' | sed 's/^[ \t CORES=$(lscpu | grep 'Core(s) per socket' | awk '{print $NF}') get_cpu_info() { - echo "CPU → ${MAGENTA}${CPU_INFO} (${CORES})" + echo "CPU → ${Text}${CPU_INFO} (${CORES})" } #What Gpu you are using @@ -67,32 +72,32 @@ get_gpu_info() { } GPU_INFO=$(get_gpu_info) get_gpu_info() { - echo "GPU → ${MAGENTA}${GPU_INFO}" + echo "GPU → ${Text}${GPU_INFO}" } #uptime UPTIME=$(uptime -p | sed 's/up //') get_uptime() { local uptime_output=$(uptime -p) - echo "Uptime → ${MAGENTA}${uptime_output:-Unknown}" + echo "Uptime → ${Text}${uptime_output:-Unknown}" } #You do need to set this manually TERMINAL="Alacritty" get_terminal_info() { - echo "Term → ${MAGENTA}${TERMINAL}" + echo "Term → ${Text}${TERMINAL}" } # Detect Package Manager package_manager() { if command -v pacman &> /dev/null; then - echo "PM → ${MAGENTA}Pacman" + echo "PM → ${Text}Pacman" elif command -v apt-get &> /dev/null; then - echo "PM → ${MAGENTA}APT" + echo "PM → ${Text}APT" # Add more package manager checks if needed else - echo "PM → ${MAGENTA}Unknown" + echo "PM → ${Text}Unknown" fi } @@ -102,13 +107,13 @@ package_manager() { #Public IP address This is useful for a server #PUBLIC_IP=$(curl -s ifconfig.me) #get_public_ip_info() { -# echo "Public IP → ${MAGENTA}${PUBLIC_IP}" +# echo "Public IP → ${Text}${PUBLIC_IP}" #} #Private IP #PRIVATE_IP=$(ip addr show | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | sed 's/\/.*//') #get_private_ip_info() { -# echo "Private IP → ${MAGENTA}${PRIVATE_IP}" +# echo "Private IP → ${Text}${PRIVATE_IP}" #} #----------------------------------------------------------------------------------# @@ -124,79 +129,79 @@ LINE="========================================================" #----------------------------------------------------------------------------------# # Small Tux # -#echo -e "${PURPLE} .--. ${USERNAME}@${HOSTNAME}${RESET}" -#echo -e "${PURPLE} |o_o | ${LINE}${RESET}" -#echo -e "${PURPLE} |:_/ | $(get_distro_info)${RESET}" -#echo -e "${PURPLE} // \\ \ $(get_cpu_info)${RESET}" -#echo -e "${PURPLE} (| | ) $(get_gpu_info)${RESET}" -#echo -e "${PURPLE} /'\\_ _/ \ $(get_terminal_info)${RESET}" -#echo -e "${PURPLE} \\___)=(___/ ${LINE}${RESET}" +#echo -e "${Background} .--. ${USERNAME}@${HOSTNAME}${RESET}" +#echo -e "${Background} |o_o | ${LINE}${RESET}" +#echo -e "${Background} |:_/ | $(get_distro_info)${RESET}" +#echo -e "${Background} // \\ \ $(get_cpu_info)${RESET}" +#echo -e "${Background} (| | ) $(get_gpu_info)${RESET}" +#echo -e "${Background} /'\\_ _/ \ $(get_terminal_info)${RESET}" +#echo -e "${Background} \\___)=(___/ ${LINE}${RESET}" #----------------------------------------------------------------------------------# # cowsay # -#echo -e "${PURPLE} ________________________________________ " -#echo -e "${PURPLE} / \ ${USERNAME}@${HOSTNAME}${RESET}" -#echo -e "${PURPLE} \ / ${LINE}${RESET}" -#echo -e "${PURPLE} ---------------------------------------- $(get_distro_info)${RESET}" -#echo -e "${PURPLE} \ ^__^ $(get_cpu_info)${RESET}" -#echo -e "${PURPLE} \ (oo)\_______ $(get_gpu_info)${RESET}" -#echo -e "${PURPLE} (__)\ )\/\ $(package_manager)${RESET}" -#echo -e "${PURPLE} ||----w | $(get_terminal_info)${RESET}" -#echo -e "${PURPLE} || || $(get_uptime)${RESET}" -#echo -e "${PURPLE} ${LINE}${RESET}" +#echo -e "${Background} ________________________________________ " +#echo -e "${Background} / \ ${USERNAME}@${HOSTNAME}${RESET}" +#echo -e "${Background} \ / ${LINE}${RESET}" +#echo -e "${Background} ---------------------------------------- $(get_distro_info)${RESET}" +#echo -e "${Background} \ ^__^ $(get_cpu_info)${RESET}" +#echo -e "${Background} \ (oo)\_______ $(get_gpu_info)${RESET}" +#echo -e "${Background} (__)\ )\/\ $(package_manager)${RESET}" +#echo -e "${Background} ||----w | $(get_terminal_info)${RESET}" +#echo -e "${Background} || || $(get_uptime)${RESET}" +#echo -e "${Background} ${LINE}${RESET}" #----------------------------------------------------------------------------------# # GNU # -echo -e "${PURPLE} = ÷÷÷÷÷÷÷ × ÷÷÷÷÷ " -echo -e "${PURPLE} ÷÷÷ ÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷×÷÷÷ ÷÷ " -echo -e "${PURPLE} ÷÷ ÷ ÷ ÷ " -echo -e "${PURPLE} ÷÷π ÷ ∞÷÷÷÷ ÷ ÷÷÷ ÷ ÷÷ " -echo -e "${PURPLE} ÷÷ ÷ ÷÷ ÷ ÷÷× ÷ ÷÷ " -echo -e "${PURPLE} ∞÷÷ ÷ ÷ ÷÷÷÷÷ ÷∞ ÷÷÷ " -echo -e "${PURPLE} ÷÷ ÷ ÷÷ ÷÷ ÷÷÷ ÷÷ ÷ ÷ ÷÷≠ " -echo -e "${PURPLE} ≈÷÷ ÷÷ ≠÷÷ ÷÷÷÷÷÷ ÷÷÷√÷÷÷ ÷÷÷√÷÷÷ ÷÷ ÷ ÷÷ " -echo -e "${PURPLE} ÷ ÷ ÷÷÷÷÷÷π÷÷÷÷ ÷÷ ÷÷÷ ÷÷÷÷÷÷ ÷÷× ${USERNAME}@${HOSTNAME}${RESET}" -echo -e "${PURPLE} ÷÷ ÷÷÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷ ÷÷÷÷÷ ≠÷÷÷ ${LINE}${RESET}" -echo -e "${PURPLE} ÷÷÷ ÷÷÷÷÷÷÷÷÷÷÷ ÷ ÷÷÷÷÷÷÷ ÷ ÷÷÷÷÷÷ ÷÷÷÷ $(get_distro_info)${RESET}" -echo -e "${PURPLE} ÷ ÷÷÷÷÷÷÷÷ ÷÷÷×÷÷÷÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷÷ $(get_cpu_info)${RESET}" -echo -e "${PURPLE} ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ ÷ ÷÷÷= $(get_gpu_info)${RESET}" -echo -e "${PURPLE} ÷÷÷ ÷÷÷÷÷÷ ÷÷÷÷÷ ∞π÷÷÷÷÷÷÷÷ $(package_manager)${RESET}" -echo -e "${PURPLE} ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ $(get_terminal_info)${RESET}" -echo -e "${PURPLE} ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ $(get_uptime)${RESET}" -echo -e "${PURPLE} ÷÷÷÷÷÷÷÷ ÷÷÷÷÷ ${LINE}${RESET}" -echo -e "${PURPLE} ×÷÷÷÷÷÷÷÷÷÷÷÷÷×÷÷ " -echo -e "${PURPLE} ÷÷÷÷÷÷÷ ÷ " -echo -e "${PURPLE} × ≠ ∞ ÷÷÷÷÷÷÷÷ " -echo -e "${PURPLE} = ÷÷÷÷÷÷÷π " -echo -e "${PURPLE} × ÷ " -echo -e "${PURPLE} = × √ " +echo -e "${Background} = ÷÷÷÷÷÷÷ × ÷÷÷÷÷ " +echo -e "${Background} ÷÷÷ ÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷×÷÷÷ ÷÷ " +echo -e "${Background} ÷÷ ÷ ÷ ÷ " +echo -e "${Background} ÷÷π ÷ ∞÷÷÷÷ ÷ ÷÷÷ ÷ ÷÷ " +echo -e "${Background} ÷÷ ÷ ÷÷ ÷ ÷÷× ÷ ÷÷ " +echo -e "${Background} ∞÷÷ ÷ ÷ ÷÷÷÷÷ ÷∞ ÷÷÷ " +echo -e "${Background} ÷÷ ÷ ÷÷ ÷÷ ÷÷÷ ÷÷ ÷ ÷ ÷÷≠ " +echo -e "${Background} ≈÷÷ ÷÷ ≠÷÷ ÷÷÷÷÷÷ ÷÷÷√÷÷÷ ÷÷÷√÷÷÷ ÷÷ ÷ ÷÷ " +echo -e "${Background} ÷ ÷ ÷÷÷÷÷÷π÷÷÷÷ ÷÷ ÷÷÷ ÷÷÷÷÷÷ ÷÷× ${USERNAME}@${HOSTNAME}" +echo -e "${Background} ÷÷ ÷÷÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷ ÷÷÷÷÷ ≠÷÷÷ ${LINE}" +echo -e "${Background} ÷÷÷ ÷÷÷÷÷÷÷÷÷÷÷ ÷ ÷÷÷÷÷÷÷ ÷ ÷÷÷÷÷÷ ÷÷÷÷ $(get_distro_info)" +echo -e "${Background} ÷ ÷÷÷÷÷÷÷÷ ÷÷÷×÷÷÷÷÷÷÷÷÷÷÷÷ ÷÷÷÷÷÷ $(get_cpu_info)" +echo -e "${Background} ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ ÷ ÷÷÷= $(get_gpu_info)" +echo -e "${Background} ÷÷÷ ÷÷÷÷÷÷ ÷÷÷÷÷ ∞π÷÷÷÷÷÷÷÷ $(package_manager)" +echo -e "${Background} ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ $(get_terminal_info)" +echo -e "${Background} ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷ $(get_uptime)" +echo -e "${Background} ÷÷÷÷÷÷÷÷ ÷÷÷÷÷ ${LINE}" +echo -e "${Background} ×÷÷÷÷÷÷÷÷÷÷÷÷÷×÷÷ " +echo -e "${Background} ÷÷÷÷÷÷÷ ÷ " +echo -e "${Background} × ≠ ∞ ÷÷÷÷÷÷÷÷ " +echo -e "${Background} = ÷÷÷÷÷÷÷π " +echo -e "${Background} × ÷ " +echo -e "${Background} = × √ " #----------------------------------------------------------------------------------# # Arch Linux # -#echo -e "${PURPLE} && " -#echo -e "${PURPLE} &&&& " -#echo -e "${PURPLE} &&&&&& " -#echo -e "${PURPLE} &&&&&&& " -#echo -e "${PURPLE} &&&&&&&& " -#echo -e "${PURPLE} &&&&&&&&&& " -#echo -e "${PURPLE} &&&&&&&&&& " -#echo -e "${PURPLE} &&& &&&&&&&&& ${USERNAME}@${HOSTNAME}${RESET}" -#echo -e "${PURPLE} &&&&&&&&&&&&&&&& ${LINE}${RESET}" -#echo -e "${PURPLE} &&&&&&&&&&&&&&&&&& $(get_distro_info)${RESET}" -#echo -e "${PURPLE} &&&&&&&&&&&&&&&&&&&& $(get_cpu_info)${RESET}" -#echo -e "${PURPLE} &&&&&&&&&&&&&&&&&&&&&& $(get_gpu_info)${RESET}" -#echo -e "${PURPLE} &&&&&&&&&&&&&&&&&&&&&&& $(package_manager)${RESET}" -#echo -e "${PURPLE} &&&&&&&&&& &&&&&&&&&&& $(get_terminal_info)${RESET}" -#echo -e "${PURPLE} &&&&&&&&& &&&&&&&&&& $(get_uptime)${RESET}" -#echo -e "${PURPLE} &&&&&&&&&& &&&&&&&&&& ${LINE}${RESET}" -#echo -e "${PURPLE} &&&&&&&&&& &&&&&&&&&&& " -#echo -e "${PURPLE} &&&&&&&&&&& &&&&&&&&& & " -#echo -e "${PURPLE} &&&&&&&&&&&& &&&&&&&&&&&& " -#echo -e "${PURPLE} &&&&&&&&&& &&&&&&&&&&& " -#echo -e "${PURPLE} &&&&&& &&&&&&& " -#echo -e "${PURPLE} &&&& &&&& " -#echo -e "${PURPLE} & && " +#echo -e "${Background} && " +#echo -e "${Background} &&&& " +#echo -e "${Background} &&&&&& " +#echo -e "${Background} &&&&&&& " +#echo -e "${Background} &&&&&&&& " +#echo -e "${Background} &&&&&&&&&& " +#echo -e "${Background} &&&&&&&&&& " +#echo -e "${Background} &&& &&&&&&&&& ${USERNAME}@${HOSTNAME}${RESET}" +#echo -e "${Background} &&&&&&&&&&&&&&&& ${LINE}${RESET}" +#echo -e "${Background} &&&&&&&&&&&&&&&&&& $(get_distro_info)${RESET}" +#echo -e "${Background} &&&&&&&&&&&&&&&&&&&& $(get_cpu_info)${RESET}" +#echo -e "${Background} &&&&&&&&&&&&&&&&&&&&&& $(get_gpu_info)${RESET}" +#echo -e "${Background} &&&&&&&&&&&&&&&&&&&&&&& $(package_manager)${RESET}" +#echo -e "${Background} &&&&&&&&&& &&&&&&&&&&& $(get_terminal_info)${RESET}" +#echo -e "${Background} &&&&&&&&& &&&&&&&&&& $(get_uptime)${RESET}" +#echo -e "${Background} &&&&&&&&&& &&&&&&&&&& ${LINE}${RESET}" +#echo -e "${Background} &&&&&&&&&& &&&&&&&&&&& " +#echo -e "${Background} &&&&&&&&&&& &&&&&&&&& & " +#echo -e "${Background} &&&&&&&&&&&& &&&&&&&&&&&& " +#echo -e "${Background} &&&&&&&&&& &&&&&&&&&&& " +#echo -e "${Background} &&&&&& &&&&&&& " +#echo -e "${Background} &&&& &&&& " +#echo -e "${Background} & && "