niche changes to fit my needs

This commit is contained in:
Odweta
2025-12-25 19:50:08 +01:00
parent 824c909ba4
commit 28a0094d3b
+2 -2
View File
@@ -23,11 +23,11 @@ $C_CYAN /_-'' ''-_\\ $C_GRAY/$C_RESET
USER=$USER
HOSTNAME=$(cat /etc/hostname)
#CPU_MODELNAME=$(cat /proc/cpuinfo | awk '/model name\t:/' | awk -F ": " '{print $2}' | head -1)
CPU_MODELNAME="Intel Core i5-8365U"
CPU_MODELNAME="i5-8365U"
CPU_THREADS_NUM=$(nproc)
RAM_FREE=$(awk '/MemFree:/ { printf "%.1f\n", $2 / 1000000 }' /proc/meminfo)
RAM_TOTAL=$(awk '/MemTotal:/ { printf "%.1f\n", $2 / 1000000 }' /proc/meminfo)
RAM="${RAM_FREE}G / ${RAM_TOTAL}G"
RAM="${RAM_FREE} G / ${RAM_TOTAL} G"
#GPU=$(cat /sys/class/drm/card1/device/{vendor,device} | tr '\n' ':' | head -c -1)
#GPU="Intel(R) UHD Graphics 620"
UPTIME=$(awk '{ s=int($1); printf "%dd %dh %dm\n", s/86400, (s%86400)/3600, (s%3600)/60 }' /proc/uptime)