2023-12-23 00:21:55 +02:00
|
|
|
#/bin/sh
|
|
|
|
|
2023-12-28 01:20:52 +02:00
|
|
|
#UPTIME=$(uptime -p)
|
2023-12-23 00:21:55 +02:00
|
|
|
DATE=$(date +'%H.%M.%S %d.%m.%Y')
|
|
|
|
|
2023-12-28 01:20:52 +02:00
|
|
|
CPU_TEMP=$(sensors -j | jq '.["k10temp-pci-00c3"].Tccd1.temp3_input')
|
|
|
|
GPU_TEMP=$(sensors -j | jq '.["amdgpu-pci-0300"].junction.temp2_input')
|
|
|
|
|
2023-12-23 00:21:55 +02:00
|
|
|
# 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)
|
|
|
|
|
2023-12-28 01:20:52 +02:00
|
|
|
echo C:$CPU_TEMP, G:$GPU_TEMP \| load: $CPU \| $DATE
|