Skip to content

Instantly share code, notes, and snippets.

@fridim
Created May 27, 2014 21:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fridim/6efaf70c2c429636652f to your computer and use it in GitHub Desktop.
#!/bin/sh
p="$(sensors coretemp-isa-0000 | awk '/Physical/ { print $4 }')"
h="$(sensors coretemp-isa-0000 | awk '/Physical/ { print $7 }')"
echo "Temp: $p"
echo "T: $p"
if [[ $p > $h ]]; then
echo '#FFAAAA'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment