Polybar module for displaying left and right fan speed
lm-sensors
- Install
lm-sensors
sudo apt install lm-sensors
- Configure
sudo sensors-detect
- Get fan_speed.sh
cd ~/.config/polybar && git clone https://github.com/vuckale/dual-fan-speed-module-polybar.git
- Make script executable:
chmod +x fan_speed.sh
- Add module to config file:
[module/fan_speed]
type = custom/script
interval = 2
format = <label>
label = %output%
exec = /path/to/fan_speed.sh
Adjust interval
to your liking and reference/point exec
to fan_speed.sh
. If you cloned it to ~/.config/polybar
it should look like this:
exec = ~/.config/polybar/dual-fan-speed-module-polybar/fan_speed.sh
- Relaunch Polybar