https://github.com/mt-inside/polybar-lmsensors
https://github.com/mt-inside/polybar-lmsensors
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mt-inside/polybar-lmsensors
- Owner: mt-inside
- License: apache-2.0
- Created: 2021-03-07T02:25:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-06T11:42:07.000Z (over 2 years ago)
- Last Synced: 2025-10-28T01:37:43.229Z (8 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# polybar-lmsensors
Simple programme that prints the values of the specified lmsensors.
[](https://github.com/mt-inside/polybar-lmsensors/actions/workflows/checks.yaml)
[](https://github.com/mt-inside/polybar-lmsensors/issues)
[](https://pkg.go.dev/github.com/mt-inside/polybar-lmsensors)
Uses the [lm-sensors](https://github.com/lm-sensors/lm-sensors) (linux monitoring sensors) pacakge, on top of the [hwmon](https://hwmon.wiki.kernel.org) kernel feature.
## Setup
* Install _lm-sensors_
* Ubuntu: `sudo apt install lm-sensors libsensors-dev`
* Arch: `pacman -S lm_sensors`
* Configure _lm-sensors_
* Run `sensors-detect`
* Make any [necessary adjustments](https://hwmon.wiki.kernel.org/faq) to the [configuration](https://linux.die.net/man/5/sensors3.conf) in `/etc/sensors3.conf`, using `/etc/sensors.d/*`
* Download [`polybar-lmsensors`](https://github.com/mt-inside/polybar-lmsensors/releases/latest/download/polybar-lmsensors_linux_amd64), `chmod 0755`, and enjoy!
* Or, with the _go_ toolchain installed, build it manually with `go get github.com/mt-inside/polybar-lmsensors`
## 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
```