1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00

13 lines
272 B
Plaintext
Raw Normal View History

2023-10-22 23:30:29 +02:00
#!/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"