Network-Manager
Displays the state of each network device managed by NetworkManager. Each device type will show an icon representing its current state (connected, acquiring, disconnected).
Configuration
Type:
network_manager
| Name | Type | Default | Profile? | Description |
|---|---|---|---|---|
icon_size | integer | 24 | No | Size to render icon at. |
types_blacklist | string[] | [] | No | Any device with a type in this list will not be shown. |
types_whitelist | string[] | [] | No | If not empty, only devices with a type in this list will be shown. |
interface_blacklist | string[] | [] | No | Any device whose interface name is in this list will not be shown. |
interface_whitelist | string[] | [] | No | If not empty, only devices whose interface name is in this list will be shown. |
icon | string | icon:network-wired-symbolic | Yes | Icon for connected wired device. |
use_default_profiles | boolean | true | No | Whether default profiles should be used. |
This module uses a compound threshold with 2-3 values for profiles:
type- device typestate- device connection statesignal_strength(optional, whentype="wifi")
Information on the profiles system can be found here.
Device Types: The device types used in types_whitelist and
types_blacklists are the same as those used by NetworkManager. You can find
the type of the devices on your system by running nmcli device status in a
terminal. The possible device types are: unknown, ethernet, wifi, bt,
olpc_mesh, wimax, modem, infiniband, bond, vlan, adsl, bridge,
generic, team, tun, ip_tunnel, macvlan, vxlan, veth, macsec,
dummy, ppp, ovs_interface, ovs_port, ovs_bridge, wpan, six_lowpan,
wireguard, wifi_p2p, vrf, loopback, hsr and ipvlan.
JSON
{ "end": [ { "type": "network_manager", "icon_size": 24, "types_blacklist": ["loopback", "bridge"], "profiles": { "wired_disconnected": { "when": { "type": "wired", "state": "disconnected" }, "icon": "icon:network-wired-disconnected-symbolic" } } } ]}TOML
[[end]]type = "network_manager"icon_size = 24types_blacklist = ["loopback", "bridge"]
[end.profiles.wired_disconnected]when = { type = "wired", state = "disconnected" }icon = "icon:network-wired-disconnected-symbolic"YAML
end: - type: "network_manager" icon_size: 24 types_blacklist: - loopback - bridge profiles: wired_disconnected: when: type: "wired" state: "disconnected" icon: "icon:network-wired-disconnected-symbolic"Corn
{ end = [ { type = "network_manager" icon_size = 24 types_blacklist = [ "loopback" "bridge" ] profiles = { wired_disconnected = { when = { type = "wired" state = "disconnected" } icon = "icon:network-wired-disconnected-symbolic" } } } ]}{ "end": [ { "type": "network_manager", "icon_size": 24, "types_blacklist": [ "loopback", "bridge" ], "profiles": { "wired_disconnected": { "when": { "type": "wired", "state": "disconnected" }, "icon": "icon:network-wired-disconnected-symbolic" } } } ]}end: - type: network_manager icon_size: 24 types_blacklist: - loopback - bridge profiles: wired_disconnected: when: type: wired state: disconnected icon: icon:network-wired-disconnected-symbolic[[end]]type = "network_manager"icon_size = 24types_blacklist = [ "loopback", "bridge" ]
[end.profiles.wired_disconnected]icon = "icon:network-wired-disconnected-symbolic"
[end.profiles.wired_disconnected.when] type = "wired" state = "disconnected"Default profiles
Show
{ wired_disconnected = { when = { type = "wired" state = "disconnected" } icon = "" } wired_acquiring = { when = { type = "wired" state = "acquiring" } icon = "icon:network-wired-acquiring-symbolic" } wired_connected = { when = { type = "wired" state = "connected" } icon = "icon:network-wired-symbolic" } wifi_disconnected = { when = { type = "wifi" state = "disconnected" } icon = "" } wifi_acquiring = { when = { type = "wifi" state = "acquiring" } icon = "icon:network-wireless-acquiring-symbolic" } wifi_connected_none = { when = { type = "wifi" state = "connected" signal_strength = 20 } icon = "icon:network-wireless-signal-none-symbolic" } wifi_connected_weak = { when = { type = "wifi" state = "connected" signal_strength = 40 } icon = "icon:network-wireless-signal-weak-symbolic" } wifi_connected_ok = { when = { type = "wifi" state = "connected" signal_strength = 50 } icon = "icon:network-wireless-signal-ok-symbolic" } wifi_connected_good = { when = { type = "wifi" state = "connected" signal_strength = 80 } icon = "icon:network-wireless-signal-good-symbolic" } wifi_connected_excellent = { when = { type = "wifi" state = "connected" signal_strength = 100 } icon = "icon:network-wireless-signal-excellent-symbolic" } cellular_disconnected = { when = { type = "cellular" state = "disconnected" } icon = "" } cellular_acquiring = { when = { type = "cellular" state = "acquiring" } icon = "icon:network-cellular-acquiring-symbolic" } cellular_connected = { when = { type = "cellular" state = "connected" } icon = "icon:network-cellular-connected-symbolic" } vpn_disconnected = { when = { type = "vpn" state = "disconnected" } icon = "" } vpn_acquiring = { when = { type = "vpn" state = "acquiring" } icon = "icon:network-vpn-acquiring-symbolic" } vpn_connected = { when = { type = "vpn" state = "connected" } icon = "icon:network-vpn-symbolic" } unknown = { when = { type = "unknown" } icon = "icon:dialog-question-symbolic" }
}{ "wired_disconnected": { "when": { "type": "wired", "state": "disconnected" }, "icon": "" }, "wired_acquiring": { "when": { "type": "wired", "state": "acquiring" }, "icon": "icon:network-wired-acquiring-symbolic" }, "wired_connected": { "when": { "type": "wired", "state": "connected" }, "icon": "icon:network-wired-symbolic" }, "wifi_disconnected": { "when": { "type": "wifi", "state": "disconnected" }, "icon": "" }, "wifi_acquiring": { "when": { "type": "wifi", "state": "acquiring" }, "icon": "icon:network-wireless-acquiring-symbolic" }, "wifi_connected_none": { "when": { "type": "wifi", "state": "connected", "signal_strength": 20 }, "icon": "icon:network-wireless-signal-none-symbolic" }, "wifi_connected_weak": { "when": { "type": "wifi", "state": "connected", "signal_strength": 40 }, "icon": "icon:network-wireless-signal-weak-symbolic" }, "wifi_connected_ok": { "when": { "type": "wifi", "state": "connected", "signal_strength": 50 }, "icon": "icon:network-wireless-signal-ok-symbolic" }, "wifi_connected_good": { "when": { "type": "wifi", "state": "connected", "signal_strength": 80 }, "icon": "icon:network-wireless-signal-good-symbolic" }, "wifi_connected_excellent": { "when": { "type": "wifi", "state": "connected", "signal_strength": 100 }, "icon": "icon:network-wireless-signal-excellent-symbolic" }, "cellular_disconnected": { "when": { "type": "cellular", "state": "disconnected" }, "icon": "" }, "cellular_acquiring": { "when": { "type": "cellular", "state": "acquiring" }, "icon": "icon:network-cellular-acquiring-symbolic" }, "cellular_connected": { "when": { "type": "cellular", "state": "connected" }, "icon": "icon:network-cellular-connected-symbolic" }, "vpn_disconnected": { "when": { "type": "vpn", "state": "disconnected" }, "icon": "" }, "vpn_acquiring": { "when": { "type": "vpn", "state": "acquiring" }, "icon": "icon:network-vpn-acquiring-symbolic" }, "vpn_connected": { "when": { "type": "vpn", "state": "connected" }, "icon": "icon:network-vpn-symbolic" }, "unknown": { "when": { "type": "unknown" }, "icon": "icon:dialog-question-symbolic" }}wired_disconnected: when: type: wired state: disconnected icon: ""wired_acquiring: when: type: wired state: acquiring icon: icon:network-wired-acquiring-symbolicwired_connected: when: type: wired state: connected icon: icon:network-wired-symbolicwifi_disconnected: when: type: wifi state: disconnected icon: ""wifi_acquiring: when: type: wifi state: acquiring icon: icon:network-wireless-acquiring-symbolicwifi_connected_none: when: type: wifi state: connected signal_strength: 20 icon: icon:network-wireless-signal-none-symbolicwifi_connected_weak: when: type: wifi state: connected signal_strength: 40 icon: icon:network-wireless-signal-weak-symbolicwifi_connected_ok: when: type: wifi state: connected signal_strength: 50 icon: icon:network-wireless-signal-ok-symbolicwifi_connected_good: when: type: wifi state: connected signal_strength: 80 icon: icon:network-wireless-signal-good-symbolicwifi_connected_excellent: when: type: wifi state: connected signal_strength: 100 icon: icon:network-wireless-signal-excellent-symboliccellular_disconnected: when: type: cellular state: disconnected icon: ""cellular_acquiring: when: type: cellular state: acquiring icon: icon:network-cellular-acquiring-symboliccellular_connected: when: type: cellular state: connected icon: icon:network-cellular-connected-symbolicvpn_disconnected: when: type: vpn state: disconnected icon: ""vpn_acquiring: when: type: vpn state: acquiring icon: icon:network-vpn-acquiring-symbolicvpn_connected: when: type: vpn state: connected icon: icon:network-vpn-symbolicunknown: when: type: unknown icon: icon:dialog-question-symbolic[wired_disconnected]icon = ""
[wired_disconnected.when] type = "wired" state = "disconnected"
[wired_acquiring]icon = "icon:network-wired-acquiring-symbolic"
[wired_acquiring.when] type = "wired" state = "acquiring"
[wired_connected]icon = "icon:network-wired-symbolic"
[wired_connected.when] type = "wired" state = "connected"
[wifi_disconnected]icon = ""
[wifi_disconnected.when] type = "wifi" state = "disconnected"
[wifi_acquiring]icon = "icon:network-wireless-acquiring-symbolic"
[wifi_acquiring.when] type = "wifi" state = "acquiring"
[wifi_connected_none]icon = "icon:network-wireless-signal-none-symbolic"
[wifi_connected_none.when] type = "wifi" state = "connected" signal_strength = 20
[wifi_connected_weak]icon = "icon:network-wireless-signal-weak-symbolic"
[wifi_connected_weak.when] type = "wifi" state = "connected" signal_strength = 40
[wifi_connected_ok]icon = "icon:network-wireless-signal-ok-symbolic"
[wifi_connected_ok.when] type = "wifi" state = "connected" signal_strength = 50
[wifi_connected_good]icon = "icon:network-wireless-signal-good-symbolic"
[wifi_connected_good.when] type = "wifi" state = "connected" signal_strength = 80
[wifi_connected_excellent]icon = "icon:network-wireless-signal-excellent-symbolic"
[wifi_connected_excellent.when] type = "wifi" state = "connected" signal_strength = 100
[cellular_disconnected]icon = ""
[cellular_disconnected.when] type = "cellular" state = "disconnected"
[cellular_acquiring]icon = "icon:network-cellular-acquiring-symbolic"
[cellular_acquiring.when] type = "cellular" state = "acquiring"
[cellular_connected]icon = "icon:network-cellular-connected-symbolic"
[cellular_connected.when] type = "cellular" state = "connected"
[vpn_disconnected]icon = ""
[vpn_disconnected.when] type = "vpn" state = "disconnected"
[vpn_acquiring]icon = "icon:network-vpn-acquiring-symbolic"
[vpn_acquiring.when] type = "vpn" state = "acquiring"
[vpn_connected]icon = "icon:network-vpn-symbolic"
[vpn_connected.when] type = "vpn" state = "connected"
[unknown]icon = "icon:dialog-question-symbolic"
[unknown.when] type = "unknown"Styling
| Selector | Description |
|---|---|
.network_manager | NetworkManager widget container. |
.network_manager .icon | NetworkManager widget icons. |
For more information on styling, please see the styling guide.