dwmbar/modules/fanspeed

14 lines
178 B
Text
Raw Permalink Normal View History

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