.dotfiles/.config/polybar/scripts/fan-speed.sh
Tobias Reisinger 1a0ffb4924 add: polybar custom scripts
add: git aliases
fix. bspwm split_ration madness
2020-02-22 15:47:10 +01:00

11 lines
160 B
Bash
Executable file

#!/bin/sh
speed=$(sensors | grep fan1 | sed -e 's/fan1: *//' -e 's/ RPM.*$//')
if [ "$speed" != "" ]; then
echo "$speed RPM"
else
echo "FAN ERROR"
fi