mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-11-25 21:08:20 +00:00
Improved UI detection and various consistency fixes
This commit is contained in:
1 parent
d9202990ae
commit
4862ade286
33 files changed
+771
-439
No files matched your search
+14
-8
@@ -9,8 +9,14 @@ host=`hostname`
|
||||
os=`uname -sr`
|
||||
kernel=`uname -v`
|
||||
uptime=`uptime | awk '{print $3" "$4}' | tr -d ,`
|
||||
packages='unknown'
|
||||
shell=`basename "$SHELL"`
|
||||
|
||||
## UI DETECTION
|
||||
|
||||
ui='unknown'
|
||||
uitype='UI'
|
||||
|
||||
## DEFINE COLORS
|
||||
|
||||
# probably don't change these
|
||||
@@ -25,12 +31,12 @@ c0="${reset}" # first color
|
||||
|
||||
## OUTPUT
|
||||
|
||||
echo "
|
||||
${c0} (/
|
||||
${c0} .---__--. ${nc}${USER}${ic}@${nc}${host}${reset}
|
||||
${c0} / \ ${lc}OS: ${ic}${os}${reset}
|
||||
${c0} | / ${lc}KERNEL: ${ic}${kernel}${reset}
|
||||
${c0} | \\_ ${lc}UPTIME: ${ic}${uptime}${reset}
|
||||
${c0} \ / ${lc}SHELL: ${ic}${shell}${reset}
|
||||
${c0} \`._.-._.\`
|
||||
echo "${c0} _${reset}
|
||||
${c0} (/ ${nc}${USER}${ic}@${nc}${host}${reset}
|
||||
${c0} .---__--. ${lc}OS: ${ic}${os}${reset}
|
||||
${c0} / \ ${lc}KERNEL: ${ic}${kernel}${reset}
|
||||
${c0} | / ${lc}PACKAGES: ${ic}${packages}${reset}
|
||||
${c0} | \\_ ${lc}UPTIME: ${ic}${uptime}${reset}
|
||||
${c0} \ / ${lc}SHELL: ${ic}${shell}${reset}
|
||||
${c0} \`._.-._.\` ${lc}${uitype}: ${ic}${ui}${reset}
|
||||
"
|
||||
Reference in new issue
Block a user