42 lines
2.1 KiB
Bash
42 lines
2.1 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Variables
|
||
|
os_system=$(uname -o)
|
||
|
kernel=$(uname -r)
|
||
|
uptime=$(uptime | tr -s " " | cut -d "," -f 1)
|
||
|
uptime=$(echo ${uptime})
|
||
|
#shell="5.8" # Run zsh --version
|
||
|
shell=$(zsh --version | cut -d " " -f 2)
|
||
|
resolution=$(xrandr 2> /dev/null | 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=$(uname -m)
|
||
|
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[35mzsh ${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 # Welcome to terminal of ${user_loaded}\e[0m"
|
||
|
echo -e -n "\e[35m # Loading terminal / \e[0m"
|
||
|
echo ""
|