Add NVIDIA statistics to the i3 bar
nvidia-smi can output various monitoring data.
nvidia-smi dmon -c 1 -s p
fetch temparature and power oncetail -1
use only the last linesed -E 's/ *. *?([0-9]*) *?([0-9]*).*/GPU: \1 Watt @ \2°C/'
extract the two numbers into the text to show
[gpu-temp] command=nvidia-smi dmon -c 1 -s p | tail -1 | sed -E 's/ *. *?([0-9]*) *?([0-9]*).*/GPU: \1 Watt @ \2°C/' interval=3
sudo apt install i3 sudo apt install i3blocks