From 27de7b7e2bcc021e04befd525ea3e1695e7a0f69 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 27 Feb 2022 22:19:21 +0100 Subject: [PATCH] Dotfiles config update (2022-02-27) --- scripts/bash-logo | 23 ++++++++++++++++++++++ scripts/bash-logo-colors | 42 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 scripts/bash-logo create mode 100644 scripts/bash-logo-colors diff --git a/scripts/bash-logo b/scripts/bash-logo new file mode 100644 index 0000000..226325e --- /dev/null +++ b/scripts/bash-logo @@ -0,0 +1,23 @@ +#!/bin/bash + +echo -e " " +echo -e "\e[31m :. .: \e[0m" +echo -e "\e[31m .=: :=. \e[0m" +echo -e "\e[31m -+ =- \e[0m" +echo -e "\e[31m :# *- \e[0m" +echo -e "\e[31m @= :@ \e[0m" +echo -e "\e[31m .@- :@:\e[0m" +echo -e "\e[31m @* *@.\e[0m" +echo -e "\e[31m #@* :=++: =@# \e[0m" +echo -e "\e[31m #@#: *@# .#@% \e[0m" +echo -e "\e[31m =%@%=: *@* :=%@@+ \e[0m" +echo -e "\e[31m -#@@@@@@@@@@@%+ \e[0m" +echo -e "\e[31m .=+%@@+=-. \e[0m" +echo -e "\e[31m *@# \e[0m" +echo -e "\e[31m +@* \e[0m" +echo -e "\e[31m :@: \e[0m" +echo -e "\e[31m % \e[0m" +echo -e "\e[31m \e[0m" +echo -e "\e[32m # Bienvenido al terminal de Q-Server\e[0m" +echo -e -n "\e[35m # Cargando el terminal / \e[0m" +echo "" diff --git a/scripts/bash-logo-colors b/scripts/bash-logo-colors new file mode 100644 index 0000000..52487a7 --- /dev/null +++ b/scripts/bash-logo-colors @@ -0,0 +1,42 @@ +#!/bin/bash + +# Variables para mostrar +#os_system="Devuan 4" +os_system=$(lsb_release -d | tr -s " " | cut -d ":" -f 2) +os_system=$(echo ${os_system}) +kernel=$(uname -r) +uptime=$(uptime | tr -s " " | cut -d "," -f 1) +uptime=$(echo ${uptime}) +shell="bash 5.1.4" # Run bash --version +resolution=$(xrandr | grep "*" | head -1 | tr -s " " | cut -d " " -f 2) +user_loaded=$(whoami) +home_user="${HOME}" +cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2) +cpu_model=$(echo ${cpu_model}) +mem_total=$(lsmem | grep "Total online memory:" | tr -s " " | cut -d ":" -f 2) +mem_total=$(echo ${mem_total}) +arch_system="${HOSTTYPE}" +hostname="${HOSTNAME}" +session_type="${XDG_SESSION_TYPE}" + +echo -e " " +echo -e "\e[31m :. .: \e[0m" +echo -e "\e[31m .=: :=. \e[0m" +echo -e "\e[31m -+ =- \e[0m \e[33mOS: \e[0m\e[35m${os_system}\e[0m" +echo -e "\e[31m :# *- \e[0m \e[33mHost: \e[0m\e[35m${hostname}\e[0m" +echo -e "\e[31m @= :@ \e[0m \e[33mKernel: \e[0m\e[35m${kernel}\e[0m" +echo -e "\e[31m .@- :@:\e[0m \e[33mUptime: \e[0m\e[35m${uptime}\e[0m" +echo -e "\e[31m @* *@.\e[0m \e[33mShell: \e[0m\e[35m${shell}\e[0m" +echo -e "\e[31m #@* :=++: =@# \e[0m \e[33mResolution: \e[0m\e[35m${resolution}\e[0m" +echo -e "\e[31m #@#: *@# .#@% \e[0m \e[33mUser: \e[0m\e[35m${user_loaded}\e[0m" +echo -e "\e[31m =%@%=: *@* :=%@@+ \e[0m \e[33mHome: \e[0m\e[35m${home_user}\e[0m" +echo -e "\e[31m -#@@@@@@@@@@@%+ \e[0m \e[33mSession: \e[0m\e[35m${session_type}\e[0m" +echo -e "\e[31m .=+%@@+=-. \e[0m \e[33mArch: \e[0m\e[35m${arch_system}\e[0m" +echo -e "\e[31m *@# \e[0m \e[33mCPU: \e[0m\e[35m${cpu_model}\e[0m" +echo -e "\e[31m +@* \e[0m \e[33mMemory: \e[0m\e[35m${mem_total}\e[0m" +echo -e "\e[31m :@: \e[0m" +echo -e "\e[31m % \e[0m" +echo -e "\e[31m \e[0m" +echo -e "\e[32m # Bienvenido al terminal de ${user_loaded}\e[0m" +echo -e -n "\e[35m # Cargando el terminal / \e[0m" +echo ""