🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6029

Bug#1110053: waybar network plugin ignores "family" directive

#6029
From: Nickolai 'Listic' Leschov
Date: Wed, 25 Nov 2026 00:00
110 lines
6770 bytes
Package: waybar
Version: 0.12.0-1
Followup-For: Bug #1110053

Dear Maintainer,

I can reproduce this issue on Debian 13 (trixie) with waybar
0.12.0-1 under Sway.

My Ethernet interface, enp4s0, has both IPv4 and IPv6 addresses.
With the following network module configuration:

    "network": {
        "format": "{ifname} {ipaddr}/{cidr}",
        "family": "ipv4"
    }

and "network" enabled in "modules-right", the bar displays an IPv6
address despite the explicit IPv4 setting. I have also observed it
occasionally switching to IPv4.

Expected result:
The module should consistently display an IPv4 address when
"family": "ipv4" is configured.

Reloading Waybar with:

    pkill -SIGUSR2 -x waybar

did not resolve the problem.

Both the installed and candidate package versions reported by
apt-cache policy are 0.12.0-1.

As a workaround, I replaced the network module with a custom module
that runs:

    ip -o -4 addr show dev enp4s0 scope global

and extracts the interface name and IPv4 address. This displays the
expected IPv4 address consistently, without disabling IPv6 or
changing the network configuration.

Could you please clarify the status of this issue for trixie?
Would a targeted fix be suitable for a stable update? If not,
is a newer Waybar version planned for trixie-backports?

I have not tested a newer Waybar version.

Thank you,
Nickolai 'Listic' Leschov

-- System Information:
Debian Release: 13.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Foreign Architectures: i386

Kernel: Linux 6.12.118+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages waybar depends on:
ii  init-system-helpers                  1.69~deb13u1
ii  libatkmm-1.6-1v5                     2.28.4-1+b2
ii  libc6                                2.41-12+deb13u5
ii  libcairomm-1.0-1v5                   1.14.5-2+b1
ii  libdbusmenu-gtk3-4                   18.10.20180917~bzr492+repack1-4
ii  libevdev2                            1.13.4+dfsg-1
ii  libfmt10                             10.1.1+ds1-4
ii  libgcc-s1                            14.2.0-19
ii  libglib2.0-0t64                      2.84.4-3~deb13u5
ii  libglibmm-2.4-1t64                   2.66.8-1
ii  libgtk-3-0t64                        3.24.49-3
ii  libgtk-layer-shell0                  0.9.0-2
ii  libgtkmm-3.0-1t64                    3.24.10-1
ii  libinput10                           1.28.1-1+deb13u1
ii  libjack-jackd2-0 [libjack-0.125]     1.9.22~dfsg-4
ii  libjsoncpp26                         1.9.6-3
ii  libmpdclient2t64                     2.22-1.1+b1
ii  libnl-3-200                          3.7.0-2
ii  libnl-genl-3-200                     3.7.0-2
ii  libpipewire-0.3-0t64                 1.4.2-1
ii  libplayerctl2                        2.4.1-3
ii  libpulse0                            17.0+dfsg1-2+b1
ii  libsigc++-2.0-0v5                    2.12.1-3
ii  libsndio7.0                          1.10.0-0.1
ii  libspdlog1.15 [libspdlog1.15-fmt10]  1:1.15.2+ds-2
ii  libstdc++6                           14.2.0-19
ii  libudev1                             257.13-1~deb13u1
ii  libupower-glib3                      1.90.9-1
ii  libwayland-client0                   1.23.1-3
ii  libwireplumber-0.5-0                 0.5.8-2
ii  libxkbregistry0                      1.7.0-2

waybar recommends no packages.

Versions of packages waybar suggests:
ii  fonts-font-awesome                              5.0.10+really4.7.0~dfsg-4.1
pn  gir1.2-playerctl-2.0                            <none>
ii  libayatana-appindicator3-1 [libappindicator3-1  0.5.94-1
    ]
ii  python3                                         3.13.5-1
ii  sway                                            1.10.1-2

-- no debconf information
Technical Details
Message-ID: <O38Ax-dXXL-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <LdCaR-3ttF-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Nickolai 'Listic' Leschov <nleschov@gmail.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1110053: waybar network plugin ignores "family" directive
Date: Wed, 25 Nov 2026 01:00:01 +0100
Message-ID: <O38Ax-dXXL-7@gated-at.bofh.it>
References: <LdCaR-3ttF-3@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <1110053@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 24 23:51:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.548
Reply-To: Nickolai 'Listic' Leschov <nleschov@gmail.com>, 1110053@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+swaywm@tracker.debian.org
X-Debian-Pr-Message: followup 1110053
X-Debian-Pr-Package: waybar
X-Debian-Pr-Keywords: ipv6
X-Debian-Pr-Source: waybar
X-Gm-Message-State: APuU4Z89itRSNofIiOFrmYK3FdUQXIn7vxZtBaYSDR/JUPzktzdNgnlL
	AlKUpVZlbGqTZkmiVnP2++ACEK4OkVzidjGB3Z9XtnLj1OqwRNUVYXaSjhvzFUc3
X-Gm-Gg: AZFdTZei3mKOt2JdIz1ocPMLZnVRKxka9ILu+sUzLC94fIaHg8T+N1Ot91LfgvipSrj
	KifmnvoAkmopFSkEC5ChBOdAsAozr10DH5HqrHyYU9FTvJ9nfnlTxzTZs3GSs7QR1FHawnyrf9F
	kpG+LWxTgjAmOUYwOQQJahvKYX1s0RnDHDe7jLbic+ng5YA2naPsJOw3iyvjNCIcC3W3nLxmsNt
	MHFEVBEbqcIt2NWAb26cJJ5mVLkIiAqqUqVCVK5TsFAB8m2e4UpQRzrT0RCLAvQLUqA7vTEdJbU
	vmZuvdzhjTFdhXUgZ5TEvl9ITVeFVPmYHIai+iJ7OV6PYKaDyLerUTXB63ib3Fzg+0DBdpkGcD6
	qqCWgFZ8gCgmZmyRt/Y6L1OCnCBG2jwkWgxGGKIWu4VBhmr+nN+hLBKStojKKaSoflnE24Y3qq5
	kt/+R60pITIiGhNFG8RcSCkopVqfb+ulzPV+T8eGg1BROVIAGCUZr37ge0i+h1A2xAYVp1uUpAa
	+CnFegUWFRkNP1WIjniAW4RvwD34MLeB7kALOYyIRPAVFTZLEPPz2LfOiPwzdSDjeKJ3RlIBFqA
	bKyWBUM7b2rwDciT22NIte67feSnVSAzevVZYfstE2VDGf3j7iq4woFiSvdzYdJ/3H8ooo/xElf
	wYpP0cAza
X-Received: by 2002:a05:6000:2c13:b0:4a6:dfe3:fd93 with SMTP id ffacd0b85a97d-4abb41f4dc6mr29876567f8f.40.1795564201671;
        Tue, 24 Nov 2026 15:50:01 -0800 (PST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004809
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 110
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 25 Nov 2026 03:49:44 +0400
X-Original-Message-ID: <179556418489.5177.8051677045548999289.reportbug@pc.pc>
X-Original-References: <175373221370.358601.3843046800841235788.reportbug@normandy.home.nivex.net>