mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-08 18:03:13 +00:00
11 lines
188 B
Bash
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
|