Created
October 23, 2013 02:33
-
-
Save blindFS/7111720 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
bumble_status=$(optirun --status|awk -F " " '{print $NF}') | |
if [ "$bumble_status" = "off." ]; then | |
echo "Gpu : off" | |
exit 0 | |
fi | |
bumble_temp=$( optirun --no-xorg nvidia-smi -q -d TEMPERATURE | grep Gpu) | |
echo "$(echo $bumble_temp | sed 's/\(\S\+\) C/ +\1.0°C/g')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment