ulyssa / iamb

A Matrix client for Vim addicts
https://iamb.chat
Apache License 2.0
608 stars 45 forks source link

[Feature request] Send notifications depending on terminal focus #276

Closed hardcore-sushi closed 2 months ago

hardcore-sushi commented 5 months ago

Currently, notifications are not sent if the room is in foreground on the terminal. However, users may still want to receive these notifications in the case their terminal is not visible, for example when using window workspaces or scratchpads. It looks like iamb already knows whether the terminal is focus via the Application::focused attribute. Couldn't that be used to decide whether to send a desktop notification?

ulyssa commented 2 months ago

Implemented in #281 by @Andrew-Collins