(defvar reveal_vpn false)
(defwidget vpn []
  (revealer-on-hover
    :revealvar reveal_vpn
    :revealvar-name "reveal_vpn"
    (button :onclick 'notify-send "test"'
            :class {network_status.proton || network_status.homevpn ? "active" : ""}
      {network_status.proton || network_status.homevpn ? "" : ""})
    (vpn_children)))

(defwidget vpn_children []
  (box :class "reveal_children"
    :orientation "h"
    :space-evenly false
    :halign "center"
    (button :onclick 'scripts/bar/nmcli-vpn "HomeVPN"'
            :class {network_status.homevpn ? "active" : ""}
      {network_status.homevpn ? "" : ""})
    (button :onclick 'scripts/bar/nmcli-vpn "Proton SE-NL"'
            :class {network_status.proton ? "active" : ""}
      {network_status.proton ? "" : ""})))
