1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

trigger: check that buffer notify is not "none" to run command of default trigger beep

This commit is contained in:
Sébastien Helleu
2022-04-23 14:15:41 +02:00
parent 51ed9ec93e
commit 2a2428902b
3 changed files with 22 additions and 2 deletions
+6 -2
View File
@@ -59,12 +59,16 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
* - message is a highlight
* OR:
* - message is a message in a private buffer
* AND:
* - buffer notify is NOT "none"
*/
{ "beep", "on",
"print",
"",
"${tg_displayed} && ${tg_tags} !!- ,notify_none, "
"&& (${tg_highlight} || ${tg_msg_pv})",
"${tg_displayed} "
"&& ${tg_tags} !!- ,notify_none, "
"&& (${tg_highlight} || ${tg_msg_pv}) "
"&& ${buffer.notify} > 0",
"",
"/print -beep",
"ok",