+ temp icon
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user