New backup 2026-01-03 16:45:02

This commit is contained in:
Penelope Gwen 2026-01-03 16:45:02 -08:00
parent 4d9f3a7a47
commit 6a33ee0c0f

View file

@ -7,22 +7,37 @@
(button :onclick 'notify-send "TODO"' (button :onclick 'notify-send "TODO"'
:class "revealer-preview ${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? 'active' : 'inactive')}" :class "revealer-preview ${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? 'active' : 'inactive')}"
{network_status.vpn ? "" : ""}) {network_status.vpn ? "" : ""})
(vpn_children))) (vpn_children :array "${network_manager.vpns}")))
(defwidget vpn_children [] (defwidget vpn_children [array]
(box :class "reveal-children" (box :class "reveal-children"
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
:halign "center" :halign "center"
(button :onclick 'scripts/bar/nmcli-vpn "HomeVPN"' (for vpn in array
:class {network_status.homevpn ? "active" : "inactive"} (button :onclick "nmcli connection ${( vpn.active == 'yes' ? 'down' : 'up' )} ${vpn.device}"
" ${network_status.homevpn ? "" : ""}") :class {( vpn.active == "yes" ? 'active' : 'inactive' )}
(button :onclick 'scripts/bar/nmcli-vpn "HomeVPN-Full"' :tooltip "${vpn.name}"
:class {network_status.homevpn_full ? "active" : "inactive"} {( vpn.name =~ '^[Hh]ome.*' ?
" ${network_status.homevpn ? "" : ""}") ( vpn.name =~ '.*[Ff]ull.*' ? '' : '') :
(button :onclick 'scripts/bar/nmcli-vpn "ProtonVPN"' ( vpn.name =~ '^pia-.*' ?
:class {network_status.proton ? "active" : "inactive"} ( vpn.name =~ '.*sea.*' ? '' : '' ) :
" ${network_status.homevpn ? "" : ""}") '' )
(button :onclick 'scripts/bar/nmcli-vpn "ProtonVPN-SC"' )}
:class {network_status.proton_sc ? "active" : "inactive"} )
" ${network_status.proton ? "" : ""}"))) )
; (button :onclick 'scripts/bar/nmcli-vpn "HomeVPN"'
; :class {network_status.homevpn ? "active" : "inactive"}
; " ${network_status.homevpn ? "" : ""}")
; (button :onclick 'scripts/bar/nmcli-vpn "HomeVPN-Full"'
; :class {network_status.homevpn_full ? "active" : "inactive"}
; " ${network_status.homevpn ? "" : ""}")
; (button :onclick 'scripts/bar/nmcli-vpn "ProtonVPN"'
; :class {network_status.proton ? "active" : "inactive"}
; " ${network_status.homevpn ? "" : ""}")
; (button :onclick 'scripts/bar/nmcli-vpn "ProtonVPN-SC"'
; :class {network_status.proton_sc ? "active" : "inactive"}
; " ${network_status.proton ? "" : ""}")
)
)