Hi

Thanks - I don't think we should do this for everyone by default, but
you could do a couple of things instead:

- bell-on-alert could also check bell-action to decide whether to send
  the bell (so bell-action "current" would also affect bell-on-alert);

- Or bell-on-alert could become a three-state option like bell-action,
  so you set bell-on-alert to "current" to make it work in the current
  window.

I think the second option would probably be better. In both cases you
would need to change both alerts_check_activity and
alerts_check_silence.






On Mon, Jul 17, 2017 at 07:53:54PM +0200, Yvain Thonnart wrote:
>    Dear tmux maintainers,
>    First of all, many thanks for your impressive continued work on this great
>    program.
>    I stumbled upon an issue with activity monitoring in trying to setup a new
>    workflow.
>    I am using the bell as an urgency hint in most of my console programs, to
>    notify my terminal and windowmanager (namely xterm and i3wm) of important
>    notices. I have been using it with tmux to pass on a bell signal for a
>    long time.
>    Yet, as I recently tried to use activity monitoring, I found out that the
>    alert is sent only when the alterting window is not the current window.
>    However, as I am using several terminals and workspaces, the current
>    window is not always visible, so I needed to create a dummy window to
>    switch to in order to get the notification from the real window.
>    I tried to play a bit with the options, and even with the hooks in the
>    latest versions, with no success.
>    Diggig in the code, I saw that you filter the alerts from the current
>    window.
>    I propose you a little modification, which actually suits my needs, where
>    the bell is passed even in current window.
>    Apparently your integration strategy is via email patches, so I will post
>    it as a followup.
>    I will be happy to discuss this, whether you think it is relevant or not,
>    or if I missed a simple configuration setup...
>    Best regards,A 
>    Yvain Thonnart
>    --------------------
>    Yvain THONNART (1):
>    A  alerts: activity/silence bell in current window
>    A alerts.c | 8 ++++----
>    A 1 file changed, 4 insertions(+), 4 deletions(-)
> 
>    --
>    You received this message because you are subscribed to the Google Groups
>    "tmux-users" group.
>    To unsubscribe from this group and stop receiving emails from it, send an
>    email to [email protected].
>    To post to this group, send email to [email protected].
>    For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to