Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.79k stars 712 forks source link

Network interface never reach disabled state #2259

Open ghost opened 1 year ago

ghost commented 1 year ago

Even when the network interface is down, waybar shows it as disconnected, never as disabled.

My config:

"network": {
        "interface": "wlp0s12f0",
        "format-wifi": "wifi",
        "format-link": "no ip",
        "format-disconnected": "disconnected",
        "format-disabled": "disabled",
    },

I disabled the interface with rfkill block wifi, sudo ip link set wlp0s12f0 down, NetworkManager, netctl. Still shows as disconnected. I tried different settings for the interface or interval option, same result.

Waybar v0.9.18 on Arch Linux.

kaos001 commented 1 year ago

I have the same problem

It seems that now networkmanager does not pass the disconnect status from virtual networks to waybar

try format-disabled: disabled

format-disabled-if-down: true

I think everything will work if you use wlan

stfl commented 8 months ago

For me after running nmcli radio all off it shows format-disconnected. It shows for format-disabled if I reload waybar.

boredland commented 4 weeks ago

Can confirm: no matter if I put format-disabled-if-down: true, it only renders the format-disabled after a reload of the sway bar.