2024-03-31 22:37:58 +02:00
Displays the current network connection state of NetworkManager.
Supports wired ethernet, wifi, cellular data and VPN connections among others.
2024-03-30 17:07:33 +01:00
2024-03-31 22:37:58 +02:00
> [!NOTE]
> This module uses NetworkManager's so-called primary connection, and therefore inherits its limitation of only being able to display the "top-level" connection.
> For example, if we have a VPN connection over a wifi connection it will only display the former, until it is disconnected, at which point it will display the latter.
> A solution to this is currently in the works.
2024-02-15 15:21:58 +01:00
## Configuration
> Type: `networkmanager`
2024-07-13 20:52:40 -03:00
| Name | Type | Default | Description |
| ----------------------------- | ---------- | ----------------------------------------------------- | ------------------------------------------------- |
| `icon_size` | `integer` | `24` | Size to render icon at. |
| `icons.wired.connected` | `string` | `icon:network-wired-symbolic` | Icon to show when there is a wired connection |
| `icons.wired.disconnected` | `string` | `icon:network-wired-symbolic` | Icon to show when there is no wired connection |
| `icons.wifi.levels` | `string[]` | `["icon:network-wireless-signal-none-symbolic", ...]` | Icon to show when there is no wifi connection |
| `icons.wifi.disconnected` | `string` | `icon:network-wireless-offline-symbolic` | Icon to show when there is no wifi connection |
| `icons.wifi.disabled` | `string` | `icon:network-wireless-hardware-disabled-symbolic` | Icon to show when wifi is disabled |
| `icons.cellular.connected` | `string` | `icon:network-cellular-connected-symbolic` | Icon to show when there is a cellular connection |
| `icons.cellular.disconnected` | `string` | `icon:network-cellular-offline-symbolic` | Icon to show when there is no cellular connection |
| `icons.cellular.disabled` | `string` | `icon:network-cellular-hardware-disabled-symbolic` | Icon to show when cellular connection is disabled |
| `icons.vpn.connected` | `string` | `icon:network-vpn-symbolic` | Icon to show when there is a VPN connection |
2024-02-15 15:21:58 +01:00
< details >
2024-07-13 20:52:40 -03:00
< summary > JSON< / summary >
```json
{
"end": [
{
"type": "networkmanager",
"icon_size": 32
}
]
}
```
2024-02-15 15:21:58 +01:00
< / details >
< details >
2024-07-13 20:52:40 -03:00
< summary > TOML< / summary >
```toml
[[end]]
type = "networkmanager"
icon_size = 32
```
2024-02-15 15:21:58 +01:00
< / details >
< details >
2024-07-13 20:52:40 -03:00
< summary > YAML< / summary >
```yaml
end:
- type: "networkmanager"
icon_size: 32
```
2024-02-15 15:21:58 +01:00
< / details >
< details >
2024-07-13 20:52:40 -03:00
< summary > Corn< / summary >
```corn
{
end = [
{
type = "networkmanager"
icon_size = 32
}
]
}
```
2024-02-15 15:21:58 +01:00
< / details >
## Styling
| Selector | Description |
2024-07-13 20:52:40 -03:00
| ---------------------- | -------------------------------- |
2024-02-15 15:21:58 +01:00
| `.networkmanager` | NetworkManager widget container. |
2024-06-17 13:26:55 +02:00
| `.networkmanger .icon` | NetworkManager widget icons. |
2024-02-15 15:21:58 +01:00
For more information on styling, please see the [styling guide ](styling-guide ).