yambar-modules-network(5)

πŸŽ€ NAME πŸŽ€

network β€” This module monitors network connection state. You're reading yambar-modules-network(5) from the File Formats Manual, bestie. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

This module monitors network connection state: disconnected/connected state and MAC/IP addresses. It instantiates the provided content particle for each network interface. ✨

Note, bestie: while the module internally tracks all assigned IPv4/IPv6 addresses, it currently exposes only a single IPv4 and a single IPv6 address per network interface. 🫢

🌈 TAGS 🌈

Tag city, population: your particles. Here's every tag this module gives you: πŸ’–

  • name (string) β€” Network interface name
  • index (int) β€” Network interface index
  • carrier (bool) β€” True if the interface has CARRIER. That is, if it is physically connected.
  • state (string) β€” One of unknown, not present, down, lower layers down, testing, dormant or up. You are probably interested in down and up.
  • mac (string) β€” MAC address
  • ipv4 (string) β€” IPv4 address assigned to the interface, or "" if none
  • ipv6 (string) β€” IPv6 address assigned to the interface, or "" if none
  • ssid (string) β€” SSID the adapter is connected to (Wi-Fi only)
  • signal (int) β€” Signal strength, in dBm (Wi-Fi only)
  • quality (range) β€” Quality of the signal, in percent (Wi-Fi only)
  • rx-bitrate (int) β€” RX bitrate, in bits/s
  • tx-bitrate (int) β€” TX bitrate in bits/s
  • dl-speed (int) β€” Download speed in bits/s
  • ul-speed (int) β€” Upload speed in bits/s

✨ CONFIGURATION ✨

Every config knob here is optional (req: no). Set them like the main character you are. πŸ‘‘

  • left-spacing (int, req: no) β€” Space, in pixels, in the left side of each rendered volume
  • right-spacing (int, req: no) β€” Space, in pixels, on the right side of each rendered volume
  • spacing (int, req: no) β€” Short-hand for setting both left-spacing and right-spacing
  • poll-interval (int, req: no) β€” Periodically (in milliseconds) update the signal, quality, rx+tx bitrate, and ul+dl speed tags (default=0). Setting it to 0 disables updates. Cannot be less than 250ms.

πŸ’– EXAMPLES πŸ’–

Here's the example config, untouched and iconic: πŸŽ€

           bar:
             left:
               - network:
                   content:
                     map:
                       default:
                         string: {text: "{name}: {state} ({ipv4})"}
                       conditions:
                         ipv4 == "":
                           string: {text: "{name}: {state}"}

πŸ”₯ SEE ALSO πŸ”₯

Go read these too, bestie:

That's the whole page, bestie. yambar-modules-network(5) β€” 2024-04-22 β€” from the File Formats Manual. Stay connected, mwah. πŸ’–πŸ”Œ

πŸ“¦ where this page comes from