adding cpu and gpu temps

This commit is contained in:
Siina Mashek 2023-12-28 01:20:52 +02:00
parent 081c0289c1
commit d0beaa3877

View file

@ -1,15 +1,14 @@
#/bin/sh
#UPTIME=$(uptime | cut -d ',' -f1 | cut -d ' ' -f4,5)
UPTIME=$(uptime -p)
#UPTIME=$(uptime -p)
DATE=$(date +'%H.%M.%S %d.%m.%Y')
CPU_TEMP=$(sensors -j | jq '.["k10temp-pci-00c3"].Tccd1.temp3_input')
GPU_TEMP=$(sensors -j | jq '.["amdgpu-pci-0300"].junction.temp2_input')
# Returns the battery status: "Full", "Discharging", or "Charging".
#BATTERY=$(cat /sys/class/power_supply/BAT0/status)
CPU=$(cat /proc/loadavg | cut -d ' ' -f1,2,3)
# Emojis and characters for the status bar
# 💎 💻 💡 🔌 ⚡ 📁 \|
#echo $uptime_formatted ↑ $linux_version 🐧 $battery_status 🔋 $date_formatted
echo $UPTIME \| load: $CPU \| $DATE
echo C:$CPU_TEMP, G:$GPU_TEMP \| load: $CPU \| $DATE