mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-23 11:44:57 +00:00
Merge branch 'patch-1' into 'aux-variant'
Style fixes for ufetch-aux See merge request Unxmaal/ufetch!1
This commit is contained in:
commit
5470e6facc
1 file changed
+18
-20
+18
-20
@@ -1,38 +1,36 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# ufetch-aux - tiny system info for aux
|
# ufetch-aux - tiny system info for a/ux
|
||||||
|
|
||||||
## INFO
|
## INFO
|
||||||
# NOTE: you should have bash installed, and you should modify
|
|
||||||
# the path appropriately.
|
|
||||||
|
|
||||||
# user is already defined
|
# user is already defined
|
||||||
host=`hostname`
|
host=`hostname`
|
||||||
os=`uname -sr`
|
os=`uname -sr`
|
||||||
kernel=`uname -v`
|
kernel=`uname -v`
|
||||||
uptime=`uptime | awk '{print "Up "$3" "$4}'|tr -d ,`
|
uptime=`uptime | awk '{print $3" "$4}' | tr -d ,`
|
||||||
shell=`basename ${SHELL}`
|
shell=`basename ${SHELL}`
|
||||||
sar=`sar|grep Average| awk '{print $1" %usr:"$2" %sys:"$3" %wio:"$4" %idle:"$4}'`
|
|
||||||
|
|
||||||
#DEFINE COLORS
|
## DEFINE COLORS
|
||||||
|
|
||||||
|
# probably don't change these
|
||||||
bold=`tput bold`
|
bold=`tput bold`
|
||||||
reset=`tput sgr0`
|
reset=`tput sgr0`
|
||||||
|
|
||||||
|
|
||||||
# you can change these
|
# you can change these
|
||||||
lc="${reset}${bold}" # labels
|
lc="${reset}${bold}" # labels
|
||||||
nc="${reset}" # not labels
|
nc="${reset}${bold}" # user and hostname
|
||||||
|
ic="${reset}" # info
|
||||||
|
c0="${reset}" # first color
|
||||||
|
|
||||||
## OUTPUT
|
## OUTPUT
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
${c0} (/
|
||||||
${nc} (/ ${nc}${USER}${lc}@${nc}${host}${reset}
|
${c0} .---__--. ${nc}${USER}${ic}@${nc}${host}${reset}
|
||||||
${nc} .---__--. ${lc}OS: ${lc}${os}${reset}
|
${c0} / \ ${lc}OS: ${ic}${os}${reset}
|
||||||
${nc} / \ ${lc}KERNEL: ${lc}${kernel}${reset}
|
${c0} | / ${lc}KERNEL: ${ic}${kernel}${reset}
|
||||||
${nc} | / ${lc}UPTIME: ${lc}${uptime}${reset}
|
${c0} | \\_ ${lc}UPTIME: ${ic}${uptime}${reset}
|
||||||
${nc} | \\_ ${lc}SHELL: ${lc}${shell}${reset}
|
${c0} \ / ${lc}SHELL: ${ic}${shell}${reset}
|
||||||
${nc} \ / ${lc}SAR: ${lc}${sar}${reset}
|
${c0} \`._.-._.\`
|
||||||
${nc} \`._.-._.\`
|
"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user