New backup 2026-01-03 17:00:01
This commit is contained in:
parent
6a33ee0c0f
commit
57e94f8b8d
2 changed files with 4 additions and 4 deletions
|
|
@ -77,7 +77,7 @@
|
||||||
;rightgroup
|
;rightgroup
|
||||||
(include "modules/bar/idle_inhibit.yuck")
|
(include "modules/bar/idle_inhibit.yuck")
|
||||||
(include "modules/bar/volume.yuck")
|
(include "modules/bar/volume.yuck")
|
||||||
(include "variables/bar/network.yuck")
|
;(include "variables/bar/network.yuck")
|
||||||
(include "variables/bar/network-manager.yuck")
|
(include "variables/bar/network-manager.yuck")
|
||||||
(include "modules/bar/network.yuck")
|
(include "modules/bar/network.yuck")
|
||||||
(include "modules/bar/vpn.yuck")
|
(include "modules/bar/vpn.yuck")
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
:revealvar-name "reveal_vpn"
|
:revealvar-name "reveal_vpn"
|
||||||
(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 ? "" : ""})
|
"${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? '' : '')}")
|
||||||
(vpn_children :array "${network_manager.vpns}")))
|
(vpn_children :array "${network_manager.vpns}")))
|
||||||
|
|
||||||
(defwidget vpn_children [array]
|
(defwidget vpn_children [array]
|
||||||
|
|
@ -18,12 +18,12 @@
|
||||||
(button :onclick "nmcli connection ${( vpn.active == 'yes' ? 'down' : 'up' )} ${vpn.device}"
|
(button :onclick "nmcli connection ${( vpn.active == 'yes' ? 'down' : 'up' )} ${vpn.device}"
|
||||||
:class {( vpn.active == "yes" ? 'active' : 'inactive' )}
|
:class {( vpn.active == "yes" ? 'active' : 'inactive' )}
|
||||||
:tooltip "${vpn.name}"
|
:tooltip "${vpn.name}"
|
||||||
{( vpn.name =~ '^[Hh]ome.*' ?
|
"${( vpn.name =~ '^[Hh]ome.*' ?
|
||||||
( vpn.name =~ '.*[Ff]ull.*' ? '' : '') :
|
( vpn.name =~ '.*[Ff]ull.*' ? '' : '') :
|
||||||
( vpn.name =~ '^pia-.*' ?
|
( vpn.name =~ '^pia-.*' ?
|
||||||
( vpn.name =~ '.*sea.*' ? '' : '' ) :
|
( vpn.name =~ '.*sea.*' ? '' : '' ) :
|
||||||
'' )
|
'' )
|
||||||
)}
|
)} ${( vpn.active == 'yes' ? '' : '' )}"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
; (button :onclick 'scripts/bar/nmcli-vpn "HomeVPN"'
|
; (button :onclick 'scripts/bar/nmcli-vpn "HomeVPN"'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue