1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-09 18:33:12 +00:00
Dotfiles/.config/polybar/themes/spacefull-dracula/polybar-scripts/system-fan-speed/system-fan-speed.sh

11 lines
188 B
Bash
Raw Normal View History

2020-07-27 04:59:00 +00:00
#!/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