Expand description
Network information
This block uses sysfs and netlink and thus does not require any external dependencies.
§Configuration
| Key | Values | Default |
|---|---|---|
device | Network interface to monitor (as specified in /sys/class/net/). Supports regex. | If not set, device will be automatically selected every interval |
interval | Update interval in seconds | 2 |
wifi_generation_superscript | Display $wifi_generation using Unicode superscripts (⁴, ⁵, ⁶, ⁶ᴱ, ⁷) | true |
format | A MultiFormat string to customise the output of this block. See below for available placeholders. | [" $icon ^icon_net_down $speed_down.eng(prefix:K) ^icon_net_up $speed_up.eng(prefix:K) "] |
inactive_format | Same as format but for when the interface is inactive | " $icon Down " |
missing_format | Same as format but for when the device is missing | " × " |
| Action | Description | Default button |
|---|---|---|
toggle_format DEPRECATED | Toggles between format and format_alt | - |
next_format | Switches to the next format in the list | Left |
prev_format | Switches to the previous format in the list | Right |
| Placeholder | Value | Type | Unit |
|---|---|---|---|
icon | Icon based on device’s type | Icon | - |
speed_down | Download speed | Number | Bytes per second |
speed_up | Upload speed | Number | Bytes per second |
graph_down | Download speed graph | Text | - |
graph_up | Upload speed graph | Text | - |
device | The name of device | Text | - |
ssid | Network SSID (WiFi only) | Text | - |
frequency | WiFi frequency | Number | Hz |
signal_strength | WiFi signal | Number | % |
bitrate | WiFi connection bitrate | Number | Bits per second |
wifi_generation | WiFi generation: 4 (HT), 5 (VHT), 6 (HE on 2.4/5 GHz), 6E (HE on 6 GHz), 7 (EHT on any band) | Text | - |
ip | IPv4 address of the iface | Text | - |
ipv6 | IPv6 address of the iface | Text | - |
nameserver | Nameserver | Text | - |
enabled | Present if the device is switched on (not turned off with rfkill or ip link set down) | Flag | - |
HT is 802.11n, VHT is 802.11ac, HE is 802.11ax and EHT is 802.11be.
wifi_generation uses the associated station’s current TX PHY metadata from
nl80211. It does not report a negotiated mode or advertised capabilities.
The dependency does not expose RX PHY metadata. Rate fallback can lower
the reported generation.
Numeric bitrate and channel width are never used to infer a generation;
frequency only distinguishes HE on 6 GHz from HE on 2.4/5 GHz.
The value is absent without a matching association or sufficient TX metadata,
and is refreshed every interval without retaining previous values.
§Example
Display WiFi info if available
[[block]]
block = "net"
format = " $icon {$signal_strength $ssid $frequency|Wired connection} via $device "Display the WiFi generation in plain text, preserving the signal-strength icon
[[block]]
block = "net"
wifi_generation_superscript = false
format = " $icon{ $wifi_generation|} ↓$speed_down ↑$speed_up "Display the generation with Unicode superscripts (the default):
[[block]]
block = "net"
format = " $icon{$wifi_generation|} ↓$speed_down ↑$speed_up "Display exact device
[[block]]
block = "net"
device = "^wlo0$"Tell a WiFi device that is not connected from one that is switched off (with rfkill for
example)
[[block]]
block = "net"
device = "^wlan0$"
format = " $icon $signal_strength "
inactive_format = " {$enabled{not connected}|switched off} "§Icons Used
net_loopback($icon)net_vpn($icon)net_wired($icon)net_wireless($icon, as a progression)net_up(^icon_net_up)net_down(^icon_net_down)