Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while true; do
- real=$(sensors | grep 'temp1' | grep -oP -m 1 "\+\d{2}.\d°C" | head -1 | gre$
- high=85
- if [ "$real" -ge "$high" ];then
- notify-send "The temperature of GPU is very high! (+$real°C)"
- sleep 60
- else
- sleep 5
- fi
- done
Add Comment
Please, Sign In to add comment