myhome/.local/bin/temp

4 lines
233 B
Plaintext
Raw Normal View History

2020-05-09 13:43:39 +02:00
#!/bin/bash
echo -e "CPU: $(sensors | awk '/Core 0/ {print $3}'| egrep --color=no -o '[0-9]+\.' | sed 's/\.//')"; echo -e "GPU: $(sudo nvidia-smi -q -d temperature | grep --color=no -i "GPU Current" |egrep --color=no -o '[0-9]*')"