-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show notifications only when WeeChat is unfocused #7
Comments
Hi, thanks for your feature request. This is an often-desired functionality that is currently missing in the plugin. As outlined in #6, the principal problem lies in a portable detection whether WeeChat has focus or not. The WeeChat's API unfortunately does not provide any way of detecting this. I know about The second, less severe reason for not using In conclusion, it all boils down to portable and reliable detection of WeeChat's focus. |
Hi @s3rvac thanks for your feedback. Well I understand that the proposed method of detecting wouldn't work for every terminal and configuration, but since it's an optional setting It could be useful for the people with compatible terminals and not harm others. The string or regex that is compared to the window title to check whether the notification is shown or not could be user-configurable. This would be the only needed setting actually and could default to a regex that doesn't match anything. Default setting:
So if I leave it with the default, notifications are always shown. Custom setting:
Notifications are not shown if "Weechat" is contained in the windows title. |
I will think about it. I would rather have a solution that would work for most setups, but I guess that would be hard to achieve. |
No need for |
The easier would be to set a new configuration for the script to change the binary to execute (currently |
Hello,
It would be nice to have a way to only show notifications when weechat is not focused.
When already looking at weechat, there is no need for a notification.
This could done using the command
I have tested it with the newest version of weechat, termite terminal emulator on i3 window manager.
There could be some option to hide top not show the when window tiitle includes "weechat" e.g.
This could also be connected to #6
Let me know what you think.
The text was updated successfully, but these errors were encountered: