Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 260 Bytes
#!/bin/bash
# Linux Mint 環境での利用
gpu_temperature=$(nvidia-smi -q -d temperature | grep -i 'GPU Current Temp' | awk '{print$5}')
if [[ ${gpu_temperature} != "" ]]; then
temp="#[bg=red,fg=white] 🔥 ${gpu_temperature}C #[default]"
echo $temp
fi
You can’t perform that action at this time.