Awesome
polybar-lmsensors
Simple programme that prints the values of the specified lmsensors.
Uses the lm-sensors (linux monitoring sensors) pacakge, on top of the hwmon kernel feature.
Setup
- Install lm-sensors
- Ubuntu:
sudo apt install lm-sensors libsensors-dev
- Arch:
pacman -S lm_sensors
- Ubuntu:
- Configure lm-sensors
- Run
sensors-detect
- Make any necessary adjustments to the configuration in
/etc/sensors3.conf
, using/etc/sensors.d/*
- Run
- Download
polybar-lmsensors
,chmod 0755
, and enjoy!- Or, with the go toolchain installed, build it manually with
go get github.com/mt-inside/polybar-lmsensors
- Or, with the go toolchain installed, build it manually with
Example
Manual Execution
$ ./polybar-lmsensors -t -n -u it8688-isa-0a40/SYS_FAN2=sys k10temp-pci-00c3/Tdie
Fan sys 825/min, Temp Tdie 41°C
Polybar Config
[module/sensors-cpu]
type = custom/script
interval = 2
format-prefix = " "
exec = path/to/polybar-lmsensors -u -n -t k10temp-pci-00c3/Tdie it8688-isa-0a40/CPU_FAN=cpu