Open
Description
The network module does not show anything about the wlan link, if its connected. However, if the connectiion is lost then format-disconnected
is diplayed and after reconnection format
is displayed, but not format-wifi
. If I then reload sway, again nothing is displayed.
I belive this has something to do with systemd-networkd, since when I stop systemd-networkd the network module displays the format
status (even though iwd is still connected). The ethernet link is displayed as expected.
Restarting waybar, reloading config and reboot, does not change the behaviour.
waybar 0.13.0-3
sway 1:1.11-1
systemd 257.7-1
iwd 3.9-1
$ cat config.jsonc
"network": {
"interface": "wlan0",
"format": "hallo",
"format-wifi": "{ifname} {frequency} {SignalStrength} % {essid}",
"format-disconnected": "Not connected",
"format-disabled": "Network interface down",
"interval": 1
},
"network#2": {
"interface": "en*",
"format-ethernet": "⮂ {ipaddr}"
}
$ cat /etc/systemd/network/20-ethernet.network
[Match]
Name=en*
Name=eth*
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
MulticastDNS=yes
[DHCPv4]
RouteMetric=100
[IPv6AcceptRA]
RouteMetric=100
$ cat /etc/systemd/network/20-ethernet.network
[Match]
Name=wlan0
[Link]
RequiredForOnline=routable
[Network]
DHCP=yes
MulticastDNS=yes
IgnoreCarrierLoss=3s
[DHCPv4]
RouteMetric=600
[IPv6AcceptRA]
RouteMetric=600
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
link/ether 20:1e:88:5d:5b:24 brd ff:ff:ff:ff:ff:ff
$ networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
3 wlan0 wlan routable configured