mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-31 16:37:45 +02:00
statusbar: split cpu and gpu temps
This commit is contained in:
parent
485dbba39b
commit
b0070644cd
@ -7,6 +7,9 @@ temp=""
|
|||||||
if command -v nvidia-smi > /dev/null; then
|
if command -v nvidia-smi > /dev/null; then
|
||||||
temp=$(nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)
|
temp=$(nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)
|
||||||
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
|
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$icon $temp°C"
|
echo "$icon $temp°C"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user