diff options
author | Shipwreckt <Shipwreckt@mailfence.com> | 2024-05-13 20:13:32 +0100 |
---|---|---|
committer | Shipwreckt <Shipwreckt@mailfence.com> | 2024-05-13 20:13:32 +0100 |
commit | 5baa94268afa2185bb0fc028603eb17e2227d986 (patch) | |
tree | be3497627d311a7d6eba0a2e45c781163ccac13d /fakefetch | |
parent | b47ef26040f7f3762b0ec611a7307693b4ccb4c6 (diff) |
changed dumb name of setup.sh to install.sh, I have also changed some stuff to make it better
Diffstat (limited to 'fakefetch')
-rwxr-xr-x | fakefetch | 217 |
1 files changed, 217 insertions, 0 deletions
diff --git a/fakefetch b/fakefetch new file mode 100755 index 0000000..e6644d4 --- /dev/null +++ b/fakefetch @@ -0,0 +1,217 @@ +#!/bin/bash + +# __ _ __ _ _ +# / _| | | / _| | | | | +# | |_ __ _| | _____| |_ ___| |_ ___| |__ +# | _/ _` | |/ / _ \ _/ _ \ __/ __| '_ \ +# | || (_| | < __/ || __/ || (__| | | | +# |_| \__,_|_|\_\___|_| \___|\__\___|_| |_| + + +#----------------------------------------------------------------------------------# +# Welcome to fakefetch # +#----------------------------------------------------------------------------------# +# This is just neofetch but # +# You do it yourself ! # +#----------------------------------------------------------------------------------# +# This is Free and open sourse software, you can do whatever you want with it # + +#----------------------------------------------------------------------------------# +# Colours # +#----------------------------------------------------------------------------------# +# The colour you want to set is probaby not listed so you will need to define it # +# yourself I've left comments on how to do this. # + +PURPLE='\033[38;5;92m' +MAGENTA='\033[38;5;98m' + +BLUE='\033[38;5;33m' +DBLUE='\033[38;5;27m' + +ORANGE='\033[38;5;214m' +DORANGE='\033[38;5;208m' + +GREEN='\033[38;5;46m' +DGREEN='\033[38;5;34m' + +RED='\033[38;5;1m' +DRED='\033[38;5;9m' + +PLUM='\033[38;5;181m' +DPLUM='\033[38;5;182m' + +#Custom Colours +#BLACK='\033[38;5;0m' + +#Change to your desired colour variable name +Text=$PLUM +Background=$DPLUM + +#----------------------------------------------------------------------------------# +# Variables # +#----------------------------------------------------------------------------------# + +#This sets what user you are currently +USERNAME=$(whoami) + +#This sets your host name +HOSTNAME=$(uname -n) + +#This shows what Distro you are using + +DISTRO=$(lsb_release -sd | sed 's/"//g') + +get_distro_info() { + echo "OS → ${Text}${DISTRO}" +} + + +#What cpu +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 → ${Text}${CPU_INFO} (${CORES})" +} + +#What Gpu you are using +get_gpu_info() { + local gpu_info + gpu_info=$(lspci | grep -i 'VGA\|3D' | sed 's/.*: //; s/ (.*//') + echo "$gpu_info" +} +GPU_INFO=$(get_gpu_info) +get_gpu_info() { + echo "GPU → ${Text}${GPU_INFO}" +} + +#uptime +UPTIME=$(uptime -p | sed 's/up //') +get_uptime() { + local uptime_output=$(uptime -p) + echo "Uptime → ${Text}${uptime_output:-Unknown}" +} + + +#You do need to set this manually +TERMINAL="Alacritty" +get_terminal_info() { + echo "Term → ${Text}${TERMINAL}" +} + +# Detect Package Manager +package_manager() { + if command -v pacman &> /dev/null; then + echo "PM → ${Text}Pacman" + elif command -v apt-get &> /dev/null; then + echo "PM → ${Text}APT" + # Add more package manager checks if needed + else + echo "PM → ${Text}Unknown" + fi +} + + +#Uncomment both to activate them + +#Public IP address This is useful for a server +#PUBLIC_IP=$(curl -s ifconfig.me) +#get_public_ip_info() { +# 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 → ${Text}${PRIVATE_IP}" +#} + +#----------------------------------------------------------------------------------# +# Decoration variables # +#----------------------------------------------------------------------------------# +LINE="========================================================" +#----------------------------------------------------------------------------------# +# Art # +#----------------------------------------------------------------------------------# +#You can add your own here if you want too, choose whatever one you want by # +# commenting out the art you do not want. # +# I have stole some ascii art for this so credit to cowsay # +#----------------------------------------------------------------------------------# +# Small Tux # + +#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 "${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 "${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 "${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} & && " |