I did a simple widget to show the IPs of your VPN interface and your target machine (if is set) while you are playing in hack the box (hackthebox.com)
It’s also a good widget to see the IP of your VPN interface (and) if the interface is up.
Screenshots
If the VPN interface is down the widget is not shown.
You can take a look at the widget source code in https://github.com/rubenhortas/awesome-htb-widget
Enjoy! ;)