Merge branch 'main' into 'main'
[ufetch.git] / ufetch-aux
blob5d9cd719062af814c85e0282199ea5946a939d5e
1 #!/bin/sh
3 # ufetch-aux - tiny system info for a/ux
5 ## INFO
7 # user is already defined
8 host=`hostname`
9 os=`uname -sr`
10 kernel=`uname -v`
11 uptime=`uptime | awk '{print $3" "$4}' | tr -d ,`
12 packages='unknown'
13 shell=`basename "${SHELL}"`
15 ## UI DETECTION
17 ui='unknown'
18 uitype='UI'
20 ## DEFINE COLORS
22 # probably don't change these
23 bold=`tput bold 2> /dev/null`
24 reset=`tput sgr0 2> /dev/null`
26 # you can change these
27 lc="${reset}${bold}" # labels
28 nc="${reset}${bold}" # user and hostname
29 ic="${reset}" # info
30 c0="${reset}" # first color
32 ## OUTPUT
34 echo "${c0} _${reset}
35 ${c0} (/ ${nc}${USER}${ic}@${nc}${host}${reset}
36 ${c0} .---__--. ${lc}OS: ${ic}${os}${reset}
37 ${c0} / \ ${lc}KERNEL: ${ic}${kernel}${reset}
38 ${c0} | / ${lc}PACKAGES: ${ic}${packages}${reset}
39 ${c0} | \\_ ${lc}UPTIME: ${ic}${uptime}${reset}
40 ${c0} \ / ${lc}SHELL: ${ic}${shell}${reset}
41 ${c0} \`._.-._.\` ${lc}${uitype}: ${ic}${ui}${reset}