1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-04 16:03:13 +00:00
Dotfiles/.config/polybar/polybar-scripts/system-fan-speed/system-fan-speed.sh
2020-07-27 07:59:00 +03:00

11 lines
188 B
Bash

#!/bin/sh
speed=$(sensors | grep fan1 | cut -d " " -f 9)
if [ "$speed" != "" ]; then
speed_round=$(echo "scale=1;$speed/1000" | bc -l )
echo "# $speed_round"
else
echo "#"
fi