waybar-network(5)
π waybar-network(5) π
okay bestie, gather round, we're doing the waybar network module today and it's literally gonna be your new fave. this is section 5 of the manual (file formats, if you're keeping score) β it's giving config-file energy, not command-line energy. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
waybar β network module. that's it, that's the whole name. she's simple, she's iconic π
π DESCRIPTION π
the network module shows you what's up with your current network connections. wifi, ethernet, the whole thing. it's the little gremlin in your bar that tells you if you're connected or going through it π
π CONFIGURATION π
you address this module as network in your config, no cap. here's every single thing you can set, and i mean every single one, we're not skipping a crumb π
interfaceβ typeof:string. use the interface you define here instead of letting her auto-detect. wildcards are accepted, slay β¨rfkillβ typeof:bool. default:true. if this is enabled, the disabled format gets used whenever rfkill is blocking wlan interfaces. be aware πintervalβ typeof:integer. default:60. how often the network info gets polled (like signal strength, for example). every 60 of your earth seconds unless you say otherwise πΈfamilyβ typeof:string. default:ipv4. which address family gets used for the{ipaddr}format replacement, and also what decides whether a network connection counts as present. set it toipv4_6if you wanna see both πformatβ typeof:string. default:{ifname}. the format, aka how the info should be displayed. this one is the fallback when no other format is specified π¦format-ethernetβ typeof:string. used when an ethernet interface is being displayed.format-wifiβ typeof:string. used when a wireless interface is being displayed.format-linkedβ typeof:string. used when a linked interface with no IP address is being displayed.format-disconnectedβ typeof:string. used when the displayed interface is disconnected πformat-disabledβ typeof:string. used when rfkill is blocking wlan interfaces.format-iconsβ typeof:array/object. based on the current signal strength, the corresponding icon gets selected. the order goes low to high. or, if it's an object, it goes by state πrotateβ typeof:integer. positive value rotates the text label, and it does it in 90 degree increments. she's turning, periodt π₯max-lengthβ typeof:integer. the maximum length in characters that the module should display.min-lengthβ typeof:integer. the minimum length in characters that the module should accept.alignβ typeof:float. the alignment of the label inside the module β0is left-aligned,1is right-aligned. if the module is rotated, it follows the flow of the text, okay? ikyk πjustifyβ typeof:string. the alignment of the text inside the module's label. you can pick'left','right', or'center'to define the positioning β¨on-clickβ typeof:string. command to run when the module is clicked.on-click-middleβ typeof:string. command to run when the module is middle-clicked with the mousewheel.on-click-rightβ typeof:string. command to run when you right-click the module.on-updateβ typeof:string. command to run when the module gets updated.on-scroll-upβ typeof:string. command to run when you scroll up on the module.on-scroll-downβ typeof:string. command to run when you scroll down on the module.smooth-scrolling-thresholdβ typeof:double. the threshold to use when scrolling. nice and smooth, we love to see it πtooltipβ typeof:bool. default:true. option to disable the tooltip on hover. if you're not a hover girlie, this one's for you πtooltip-formatβ typeof:string. the format for how info should be displayed in the tooltip. this one is the fallback when no other tooltip formats are specified πtooltip-format-ethernetβ typeof:string. used when an ethernet interface is being displayed.tooltip-format-wifiβ typeof:string. used when a wireless interface is being displayed.tooltip-format-disconnectedβ typeof:string. used when the displayed interface is disconnected.tooltip-format-disabledβ typeof:string. used when rfkill is blocking wlan interfaces.menuβ typeof:string. the action that popups the menu.menu-fileβ typeof:string. location of the menu descriptor file. there needs to be an element of typeGtkMenuwith idmenu.menu-actionsβ typeof:array. the actions corresponding to the buttons of the menu.expandβ typeof:bool. default:false. enables this module to consume all the left over space dynamically. she's hungry, let her eat π
π¦ FORMAT REPLACEMENTS π¦
these are the little magic spell slots you drop into your formats. plop one in and it fills itself in, no cap πͺ
{ifname}β name of the network interface.{ipaddr}β the first IP of the interface.{gwaddr}β the default gateway for the interface.{netmask}β the subnetmask corresponding to the IP(V4).{netmask6}β the subnetmask corresponding to the IP(V6).{cidr}β the subnetmask corresponding to the IP(V4) in CIDR notation.{cidr6}β the subnetmask corresponding to the IP(V6) in CIDR notation.{essid}β name (SSID) of the wireless network.{bssid}β MAC address (BSSID) of the wireless access point.{signalStrength}β signal strength of the wireless network.{signaldBm}β signal strength of the wireless network in dBm.{frequency}β frequency of the wireless network in GHz.{bandwidthUpBits}β instant up speed in bits/seconds.{bandwidthDownBits}β instant down speed in bits/seconds.{bandwidthTotalBits}β instant total speed in bits/seconds.{bandwidthUpOctets}β instant up speed in octets/seconds.{bandwidthDownOctets}β instant down speed in octets/seconds.{bandwidthTotalOctets}β instant total speed in octets/seconds.{bandwidthUpBytes}β instant up speed in bytes/seconds.{bandwidthDownBytes}β instant down speed in bytes/seconds.{bandwidthTotalBytes}β instant total speed in bytes/seconds.{icon}β icon, as defined informat-icons.
β EXAMPLES β
here's the whole vibe, copy her exactly:
"network": {
"interface": "wlp2s0",
"format": "{ifname}",
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname} ",
"format-disconnected": "", //An empty format will hide the module.
"format-disconnected": "",
"tooltip-format": "{ifname}",
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
"max-length": 50
}
ngl bestie, yes, format-disconnected really does show up twice up there. i'm not touching it, that's just how the example is written and i don't make the rules π
π STYLE π
these are the CSS selectors you can target, go off:
#network#network.disconnected#network.disabled#network.linked#network.ethernet#network.wifi
and that's the whole page!! π«Ά this beauty lives in the waybar-network(5) manual page, dated 2026-02-08 β write that down bestie, it's giving timeless β go forth and make your bar gorgeous πβ¨
π¦ where this page comes from
- ubuntu resolute: waybar 0.15.0-1 Β· MIT
- ubuntu stonking: waybar 0.15.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms