adding cpu and gpu temps
This commit is contained in:
parent
081c0289c1
commit
d0beaa3877
|
@ -1,15 +1,14 @@
|
||||||
#/bin/sh
|
#/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')
|
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".
|
# Returns the battery status: "Full", "Discharging", or "Charging".
|
||||||
#BATTERY=$(cat /sys/class/power_supply/BAT0/status)
|
#BATTERY=$(cat /sys/class/power_supply/BAT0/status)
|
||||||
|
|
||||||
CPU=$(cat /proc/loadavg | cut -d ' ' -f1,2,3)
|
CPU=$(cat /proc/loadavg | cut -d ' ' -f1,2,3)
|
||||||
|
|
||||||
# Emojis and characters for the status bar
|
echo C:$CPU_TEMP, G:$GPU_TEMP \| load: $CPU \| $DATE
|
||||||
# 💎 💻 💡 🔌 ⚡ 📁 \|
|
|
||||||
#echo $uptime_formatted ↑ $linux_version 🐧 $battery_status 🔋 $date_formatted
|
|
||||||
echo $UPTIME \| load: $CPU \| $DATE
|
|
||||||
|
|
Loading…
Reference in New Issue