awesome/bin/gpufanspeed.sh
2022-11-08 18:56:12 +01:00

5 lines
144 B
Bash
Executable file

#!/bin/sh
if ! gputemp=$(nvidia-smi --format=nounits,csv,noheader --query-gpu=fan.speed | xargs echo); then
gputemp=0
fi
echo "${gputemp}%"