+ temp icon

This commit is contained in:
committer@tuxwarrior
2026-03-04 13:06:03 -05:00
parent f619039c96
commit 08d6e934b0
3 changed files with 11 additions and 5 deletions

View File

@@ -12,9 +12,14 @@
# the value is reported in milli-degrees celsius. we divide by 1000 to convert to degrees celsius
echo /home/poq/.config/nwg-panel/icons/temperature-full-solid-full.svg
echo "$(($(cat /sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input) / 1000))°C"
# icon: https://fontawesome.com/icons/temperature-full?f=classic&s=solid
# to set colour in svg, set `fill="white"` in the file
temperature=$(($(cat /sys/devices/virtual/thermal/thermal_zone3/hwmon6/temp1_input) / 1000))
if [[ ${temperature} -gt 59 ]]; then
echo /home/poq/.config/nwg-panel/icons/temperature-full-solid-full.alarm.svg
else
echo /home/poq/.config/nwg-panel/icons/temperature-full-solid-full.svg
fi
echo "${temperature}°C"