emersion / mako

A lightweight Wayland notification daemon
https://wayland.emersion.fr/mako
MIT License
2.24k stars 138 forks source link

Add app-name pattern matching #438

Closed Nairou closed 10 months ago

Nairou commented 2 years ago

Needed for apps (like Telegram) that add a notification count to their window title, making exact matching fail.

emersion commented 2 years ago

Does Telegram set the desktop-entry field? This would be more appropriate to check if set.

Nairou commented 2 years ago

Does Telegram set the desktop-entry field? This would be more appropriate to check if set.

How would I find that field? I'm using sway and swaymsg -t get_tree shows the Telegram window, but only title and app-id are set.

emersion commented 2 years ago

Hm, it sounds like it's missing from the makoctl list output at the moment. I've added it in https://github.com/emersion/mako/pull/439.

emersion commented 10 months ago

Is this still something you need? Or is desktop-entry working for you?

Nairou commented 10 months ago

Didn't realize this PR was still open. There is no desktop-entry that I've been able to make use of, but a combination of app-id and summary have worked well enough for my needs. Thanks!