Skip to content

Instantly share code, notes, and snippets.

View DRFR0ST's full-sized avatar
🏡
Not on vacation

Mike Eling DRFR0ST

🏡
Not on vacation
View GitHub Profile
@DRFR0ST
DRFR0ST / highTempAlert.sh
Created December 15, 2018 14:15
Sends a notification when the GPU temperature is over +85°C
#!/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