#!/usr/bin/bash

. '/etc/os-release'

CU='\033[4m'    # underline
C0='\033[0m'    # clear
C1='\033[31m'   # red
C2='\033[32m'   # green
C3='\033[33m'   # yellow
C4='\033[91m'   # orange
C5='\033[34m'   # blue

KERNEL=$(/usr/bin/uname --kernel-release)
CLOCK=$(/usr/bin/date +"%d.%m.%Y | %T")
TIMEZONE=$(/usr/bin/timedatectl show --value --property='Timezone')
UPTIME=$(/usr/bin/uptime --pretty | /usr/bin/sed --expression='s/up //')
LOAD_AVERAGE=$(/usr/bin/uptime | /usr/bin/sed --expression='s/.*load average: //' --expression='s/, / | /g')

/usr/bin/echo -e "\t${C3}Distribution:${C0}\t\t\t\t\t${PRETTY_NAME}"
/usr/bin/echo -e "\t${C3}Kernel:${C0}\t\t\t\t\t\t${KERNEL}"
/usr/bin/echo -e "\t${C3}Clock:${C0}\t\t\t\t\t\t${CLOCK}"
/usr/bin/echo -e "\t${C3}Timezone:${C0}\t\t\t\t\t${TIMEZONE}"
/usr/bin/echo -e "\t${C3}Uptime:${C0}\t\t\t\t\t\t${UPTIME}"
/usr/bin/echo -e "\t${C3}Load Average:${C0}\t\t\t\t\t${LOAD_AVERAGE}"
