1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-09-19 13:57:49 +00:00
Dotfiles/.config/polybar/themes/spacefull-dracula/polybar-scripts/system-fan-speed/system-fan-speed.sh
2020-09-05 14:43:37 +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