network - This module monitors network connection state
Contents
Configuration
┌───────────────┬──────┬─────┬──────────────────────────────────────────────────────────────────────────┐
│ Name │ Type │ Req │ Description │
├───────────────┼──────┼─────┼──────────────────────────────────────────────────────────────────────────┤
│ left-spacing │ int │ no │ Space, in pixels, in the left side of each rendered volume │
├───────────────┼──────┼─────┼──────────────────────────────────────────────────────────────────────────┤
│ right-spacing │ int │ no │ Space, in pixels, on the right side of each rendered volume │
├───────────────┼──────┼─────┼──────────────────────────────────────────────────────────────────────────┤
│ spacing │ int │ no │ Short-hand for setting both left-spacing and right-spacing │
├───────────────┼──────┼─────┼──────────────────────────────────────────────────────────────────────────┤
│ poll-interval │ int │ 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. │
└───────────────┴──────┴─────┴──────────────────────────────────────────────────────────────────────────┘
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: 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.
Examples
bar:
left:
- network:
content:
map:
default:
string: {text: "{name}: {state} ({ipv4})"}
conditions:
ipv4 == "":
string: {text: "{name}: {state}"}
Name
network - This module monitors network connection state
See Also
yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
2024-04-20 yambar-modules-network(5)
