diff --git a/de/home/.config/eww/modules/bar/vpn.yuck b/de/home/.config/eww/modules/bar/vpn.yuck index 33f5561..4ec9280 100644 --- a/de/home/.config/eww/modules/bar/vpn.yuck +++ b/de/home/.config/eww/modules/bar/vpn.yuck @@ -4,8 +4,8 @@ :class "${reveal_vpn} vpn" :revealvar reveal_vpn :revealvar-name "reveal_vpn" - (button :onclick 'notify-send "test"' - :class "revealer-preview ${network_status.proton || network_status.homevpn ? 'active' : 'inactive'}" + (button :onclick 'notify-send "TODO"' + :class "revealer-preview ${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? 'active' : 'inactive')}" {network_status.vpn ? "" : ""}) (vpn_children)))