New backup 2026-01-03 15:00:02
This commit is contained in:
parent
53f26466f9
commit
390f210855
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
:revealvar-name "reveal_network"
|
||||
(button :onclick 'nm-connection-editor'
|
||||
:tooltip "${jq(network_manager.interfaces, '.[] | "\\(.connection) (\\(.device)) \\n"', 'r')}"
|
||||
:class "revealer-preview" ;${network_status.wifi || network_status.wired ? 'active' : 'inactive'}"
|
||||
:class "revealer-preview ${(jq(network_manager.interfaces, '[ .[] | select(.state=="connected") ] | length') > 0 ? 'active' : 'inactive')}" ;${network_status.wifi || network_status.wired ? 'active' : 'inactive'}"
|
||||
"")
|
||||
(network_children :array "${network_manager.interfaces}")))
|
||||
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
:halign "center"
|
||||
(for interface in array
|
||||
(button :onclick "nmcli device ${( interface.state == 'connected' ? 'down' : 'up' )} ${interface.device}"
|
||||
:class {( interface.state == "connected" ? 'active' : 'inactive' )}
|
||||
:tooltip "${interface.connection} (${interface.device})"
|
||||
{( interface.type == "wifi" ? "" : ( interface.type == "ethernet" ? "" : "" ))}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue