Using Bartender to only display Wireguard icon if connected to VPN - Trevor Manternach
Intro
I don’t remember if I figured this out myself or found the suggestion elsewhere, but I just searched and couldn’t find anything online so I decided to document this neat trick.
I use Bartender on all my Macs to clean up my Menu Bar. However I missed being able to glance up and look at the Wireguard icon to tell if I was connected to a Wireguard VPN or not. Bartender has a “Triggers” feature that makes it possible to show certain menu bar icons based on the output of a shell script.
Trevor Manternach