8 lines
233 B
Bash
8 lines
233 B
Bash
|
EXEC_SHELL_PATH=$(command -v bash)
|
||
|
|
||
|
# Use sensors command and extract GPU temperature data
|
||
|
temperature=$(sensors | grep "edge" | awk '{print $2}' | cut -c 2-)
|
||
|
|
||
|
# Output the formatted temperature with a label
|
||
|
echo "GPU: $temperature"
|