myhome/.local/bin/sb-temp

5 lines
211 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
print_temp(){
echo -e "🔥 $(sensors | awk '/Core 0/ {print int($3)"°C"}') $(sudo nvidia-smi -q -d temperature | grep --color=no -i "GPU Current" |egrep --color=no -o '[0-9]*')°C"
}
print_temp