mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 23:34:57 +08:00
Former-commit-id: 46c2bf7d26
Former-commit-id: ec0b4e689f3f8e97d837848929a1a6a9e45f779b
Former-commit-id: 19f055447f5fd666a270a51cf98b05d70716e826
16 lines
351 B
Bash
Executable file
16 lines
351 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
TEMP="$(nvidia-settings -q all | grep "Attribute 'ThermalSensorReading'" -m 1 | awk '{print $4}')"
|
|
|
|
# With icon
|
|
# echo " $TEMP"
|
|
|
|
# Just text
|
|
if [ ${#TEMP} -eq "0" ]; then
|
|
# Print CPU temp if nvidia card is disabled
|
|
~/Scripts/temperature.sh
|
|
else
|
|
echo " ${TEMP%?}°C"
|
|
# echo "HEAT ${TEMP%?}°C"
|
|
fi
|
|
#echo "gpu ${TEMP%?}°C"
|