mirror of https://github.com/tiyn/dotfiles
parent
751cc5fbfe
commit
485dbba39b
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
icon="^b#282828^^c#dfdfdf^ ^d^"
|
||||
|
||||
temp=""
|
||||
|
||||
if command -v nvidia-smi > /dev/null; then
|
||||
temp=$(nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)
|
||||
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
|
||||
fi
|
||||
|
||||
echo "$icon $temp°C"
|
Loading…
Reference in new issue