From 2a2428902b021d6ea3535cc7b9700c3243879790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 23 Apr 2022 14:15:41 +0200 Subject: trigger: check that buffer notify is not "none" to run command of default trigger beep --- src/plugins/trigger/trigger-config.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c index 3f72a54f5..b29349526 100644 --- a/src/plugins/trigger/trigger-config.c +++ b/src/plugins/trigger/trigger-config.c @@ -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", -- cgit v1.2.3