As of version 0.9.17, waybar can be compiled with the meson "mpris" option enabled to allow the bar to display and control currently-playing media. This feature requires libplayerctl, which is provided in Gentoo by media-sound/ playerctl. It would be nice if this package could gain a USE flag to enable this feature. As an example of precedent, x11-misc/yabar has a "playerctl" USE flag for this purpose. Reproducible: Always
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5064961fea762cf204de7bed03e018dbaf5acee commit a5064961fea762cf204de7bed03e018dbaf5acee Author: Julien Roy <julien@jroy.ca> AuthorDate: 2023-04-09 22:21:57 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-10 05:21:34 +0000 gui-apps/waybar: add several USE flags evdev, jack, libinput, logind, mpris, pipewire, systemd, test, upower drop net-wireless/rfkill DEPEND Closes: https://bugs.gentoo.org/894068 Signed-off-by: Julien Roy <julien@jroy.ca> Signed-off-by: Sam James <sam@gentoo.org> gui-apps/waybar/files/systemd-0.9.17.patch | 35 ++++++++++ gui-apps/waybar/metadata.xml | 7 +- gui-apps/waybar/waybar-0.9.17-r1.ebuild | 102 +++++++++++++++++++++++++++++ gui-apps/waybar/waybar-9999.ebuild | 46 ++++++++++--- 4 files changed, 181 insertions(+), 9 deletions(-)
It looks like the this change introduced a pulseaudio useflag and introduced a pipewire flag. However, if using pipewire's pulseaudio implementation, the module does not seem to work correctly when -pulseaudio +pipewire is enabled. I wasn't sure if that is intended or if it requires a config change for pipewire to work, so I wanted to ask here first before adding another bug.
(In reply to Rodrigo Kochenburger from comment #2) Bug https://bugs.gentoo.org/904165 mentions a different (but similar) issue with regards to pulseaudio and pipewire. The fix for that bug should cover your use case, but you can add a comment to that bug to mention this other problem as well.
I have also compiled waybar with +mpris -pulseaudio +pipewire and the module mpris doesn't seem to be present. Waybar reports: [2023-04-14 15:13:17.603] [warning] module mpris: Unknown module: mpris
(In reply to Tomasz Golinski from comment #4) > I have also compiled waybar with +mpris -pulseaudio +pipewire and the module > mpris doesn't seem to be present. Waybar reports: > > [2023-04-14 15:13:17.603] [warning] module mpris: Unknown module: mpris That's because the mpris module will only be built if the `logind` USE flag is turned on as well. I will update the ebuild to reflect this, thanks for reporting it.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d5b83c04eafed28c97d9ef5909f7eaedbb69078 commit 8d5b83c04eafed28c97d9ef5909f7eaedbb69078 Author: Julien Roy <julien@jroy.ca> AuthorDate: 2023-04-15 15:20:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-16 00:10:30 +0000 gui-apps/waybar: add 0.9.17-r2 Fix pulseaudio USE flag dependency Remove systemd patch Improme logind USE flag description Add REQUIRED_USE for mpris and upower Make libinput USE flag enabled by default Bug: https://bugs.gentoo.org/894068 Closes: https://bugs.gentoo.org/904163 Closes: https://bugs.gentoo.org/904165 Signed-off-by: Julien Roy <julien@jroy.ca> Signed-off-by: Sam James <sam@gentoo.org> gui-apps/waybar/metadata.xml | 2 +- gui-apps/waybar/waybar-0.9.17-r2.ebuild | 106 ++++++++++++++++++++++++++++++++ gui-apps/waybar/waybar-9999.ebuild | 15 ++--- 3 files changed, 115 insertions(+), 8 deletions(-)