Skip to content

network ​

Network connection status with a dropdown for switching connections.

Add it to your layout with network:

yaml
bar:
  layout:
    - monitor: "*"
      right: [network]

General ​

FieldTypeDefaultDescription
wifi-disabled-iconstring"ld-wifi-off-symbolic"WiFi icon when disabled.
wifi-acquiring-iconstring"ld-wifi-sync-symbolic"WiFi icon when connecting.
wifi-offline-iconstring"ld-wifi-zero-symbolic"WiFi icon when disconnected.
wifi-connected-iconstring"ld-wifi-symbolic"WiFi icon when connected but signal strength unavailable.
wifi-signal-iconsarray of string[...]WiFi signal strength icons from weak to excellent.
wired-connected-iconstring"ld-ethernet-port-symbolic"Wired icon when connected.
wired-acquiring-iconstring"ld-loader-circle-symbolic"Wired icon when connecting.
wired-disconnected-iconstring"ld-unplug-symbolic"Wired icon when disconnected.
border-showboolfalseDisplay border around button.
icon-showbooltrueDisplay module icon.
label-showbooltrueDisplay connection label (SSID for WiFi, "Wired" for ethernet).
label-max-lengthu3215Max label characters before truncation with ellipsis. Set to 0 to disable.
vpn-connected-iconstring"ld-lock-symbolic"Icon when a VPN is connected.
vpn-connecting-iconstring"ld-refresh-cw-symbolic"Icon while a VPN connection is in flight.
vpn-disconnected-iconstring"ld-unplug-symbolic"Icon when a VPN is configured but disconnected.
vpn-showVpnShow"auto"When the VPN state replaces the wifi/wired icon.
More about wifi-signal-icons

The signal percentage maps to icons: 0-25% uses icons[0], 26-50% uses icons[1], etc.

More about vpn-show

auto shows it only once NetworkManager holds a VPN profile, so adding the key changes nothing on a machine with no VPN.

Colors ​

FieldTypeDefaultDescription
border-colorColorValue"accent"Border color token.
icon-colorColorValue"auto"Icon foreground color. Auto selects based on variant for contrast.
icon-bg-colorColorValue"accent"Icon container background color token.
label-colorColorValue"fg-default"Label text color token.
button-bg-colorColorValue"bg-surface-elevated"Button background color token.

Click actions ​

FieldTypeDefaultDescription
left-clickClickAction"dropdown:network"Action on left click.
right-clickClickAction""Action on right click.
middle-clickClickAction""Action on middle click.
scroll-upClickAction""Action on scroll up.
scroll-downClickAction""Action on scroll down.

Default configuration ​

yaml
modules:
  network:
    wifi-disabled-icon: ld-wifi-off-symbolic
    wifi-acquiring-icon: ld-wifi-sync-symbolic
    wifi-offline-icon: ld-wifi-zero-symbolic
    wifi-connected-icon: ld-wifi-symbolic
    wifi-signal-icons:
      - ld-wifi-zero-symbolic
      - ld-wifi-low-symbolic
      - ld-wifi-high-symbolic
      - ld-wifi-symbolic
    wired-connected-icon: ld-ethernet-port-symbolic
    wired-acquiring-icon: ld-loader-circle-symbolic
    wired-disconnected-icon: ld-unplug-symbolic
    border-show: false
    border-color: accent
    icon-show: true
    icon-color: auto
    icon-bg-color: accent
    label-show: true
    label-color: fg-default
    label-max-length: 15
    button-bg-color: bg-surface-elevated
    vpn-connected-icon: ld-lock-symbolic
    vpn-connecting-icon: ld-refresh-cw-symbolic
    vpn-disconnected-icon: ld-unplug-symbolic
    vpn-show: auto
    left-click: dropdown:network
    right-click: ""
    middle-click: ""
    scroll-up: ""
    scroll-down: ""

Released under the MIT License.