To use dunst on niri, we need wayland support built in (the non-wayland version works with XWayland under wayland/sway, but with xwayland-satellite as used by niri, notifications appear as regular windows with decorations and all.
Therefore I'd like to propose a wayland FLAVOR for x11/dunst. What do you think?
Index: Makefile =================================================================== RCS file: /cvs/ports/x11/dunst/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- Makefile 31 Dec 2025 14:23:22 -0000 1.20 +++ Makefile 1 Mar 2026 13:48:36 -0000 @@ -10,6 +10,8 @@ HOMEPAGE= https://dunst-project.org/ MAINTAINER = Timo Myyra <[email protected]> +FLAVORS = wayland +FLAVOR ?= # BSD PERMIT_PACKAGE = Yes @@ -44,8 +46,14 @@ MAKE_FLAGS = PREFIX="${PREFIX}" \ SYSCONFDIR="/etc" \ BASHCOMPLETIONDIR="${LOCALBASE}/share/bash-completion/completions" \ FISHCOMPLETIONDIR="${LOCALBASE}/share/fish/vendor_completions.d" \ - ZSHCOMPLETIONDIR="${LOCALBASE}/share/zsh/site-functions" \ - WAYLAND=0 + ZSHCOMPLETIONDIR="${LOCALBASE}/share/zsh/site-functions" + +.if ${FLAVOR:Mwayland} +LIB_DEPENDS += wayland/wayland +WANTLIB += wayland-client wayland-cursor +.else +MAKE_FLAGS += WAYLAND=0 +.endif pre-configure: ${SUBST_CMD} ${WRKSRC}/docs/dunst.1.pod.in \
