Skip to content

Add WaylandAppInfoProvider for wlroots-based compositors (sway, Hyprland, labwc, wayfire, etc.) - #2731

Merged
AucaCoyan merged 3 commits into
espanso:devfrom
pafernanr:Add-WaylandAppInfoProvider-for-wlroots-based-compositors-(labwc,-sway,-etc.)
Jul 18, 2026
Merged

AucaCoyan merged 3 commits into
espanso:devfrom
pafernanr:Add-WaylandAppInfoProvider-for-wlroots-based-compositors-(labwc,-sway,-etc.)

Conversation

@pafernanr

@pafernanr pafernanr commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

fixes: #2730

@pafernanr
pafernanr requested a review from Archigos as a code owner July 13, 2026 14:21
@pafernanr

Copy link
Copy Markdown
Contributor Author

if wlrctl exposed the PID, we could resolve exec via readlink /proc//exe, which would enable filter_exec (exactly what the Niri and KDE providers do). Without it, only filter_class and filter_title work.

That said, the underlying wlr-foreign-toplevel-management Wayland protocol doesn't include PID information either, so wlrctl can't really expose what the protocol doesn't provide. It would require compositor-side extensions or a different protocol to get PIDs.

For most users filter_class (app_id) is sufficient — it's the primary way people write per-app configs. So this is a reasonable first implementation, and PID support could be added later if a mechanism becomes available.

…, etc.)

Signed-off-by: Pablo Fernández Rodríguez <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
@pafernanr
pafernanr force-pushed the Add-WaylandAppInfoProvider-for-wlroots-based-compositors-(labwc,-sway,-etc.) branch from 776c620 to 9a78686 Compare July 14, 2026 11:49
@AucaCoyan
AucaCoyan merged commit 67c3189 into espanso:dev Jul 18, 2026
3 of 4 checks passed
AucaCoyan added a commit to Zettt/espanso that referenced this pull request Jul 19, 2026
…and, labwc, wayfire, etc.) (espanso#2731)

* Add WaylandAppInfoProvider for wlroots-based compositors (labwc, sway, etc.)

Signed-off-by: Pablo Fernández Rodríguez <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Signed-off-by: Pablo Fernández Rodríguez <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: Auca Maillot <[email protected]>
@pafernanr
pafernanr deleted the Add-WaylandAppInfoProvider-for-wlroots-based-compositors-(labwc,-sway,-etc.) branch July 24, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add WaylandAppInfoProvider for wlroots-based compositors (labwc, sway, etc.)

2 participants