dwmbar/modules/fanspeed

14 lines
172 B
Text
Raw Normal View History

#!/bin/bash
# Prints the fan RPM
# Depends on lm_sensors
PREFIX=' '
get_fan_speed()
{
echo "$PREFIX$(sensors | grep fan1 | cut -d " " -f 9) RPM"
}
get_fan_speed