Dotfiles-dwm/dwmbar/modules/fanspeed

14 lines
178 B
Plaintext
Raw Normal View History

2024-06-02 11:02:06 +00:00
#!/bin/bash
# Prints the fan RPM
# Depends on lm_sensors
PREFIX=' '
get_fan_speed()
{
echo "$PREFIX$(sensors | grep fan1 | awk 'NR==1{print $2}') RPM"
}
get_fan_speed