mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-22 02:22:53 +00:00
14 lines
172 B
Text
14 lines
172 B
Text
|
#!/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
|