From 289bab03e4c561a00f17ace377ebbf1491f8ff69 Mon Sep 17 00:00:00 2001 From: Benedikt Heine Date: Mon, 14 Aug 2017 16:14:03 +0200 Subject: [PATCH] Chain history_ignore and transient together If the transient hint is set on the notification, it should only be valid as long as it shows up. So the pushing it to the history makes no sense. As it's no problem to change this individually by the rule system, it's a sane default for history_ignore to default to the transient option. --- config.def.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.def.h b/config.def.h index bf988e1..1b9a097 100644 --- a/config.def.h +++ b/config.def.h @@ -93,6 +93,9 @@ rule_t default_rules[] = { /* name, appname, summary, body, icon, category, msg_urgency, timeout, urgency, markup, history_ignore, match_transient, set_transient, new_icon, fg, bg, format, script */ { "empty", NULL, NULL, NULL, NULL, NULL, -1, -1, -1, MARKUP_NULL, -1, -1, -1, NULL, NULL, NULL, NULL, NULL}, + /* ignore transient hints in history by default */ + { "ignore_transient_in_history", + NULL, NULL, NULL, NULL, NULL, -1, -1, -1, MARKUP_NULL, 1, 1, -1, NULL, NULL, NULL, NULL, NULL}, /* { "rule1", "notify-send", NULL, NULL, NULL, NULL, -1, -1, -1, MARKUP_NULL, -1, -1, -1, NULL, NULL, NULL, "%s %b", NULL}, */ /* { "rule2", "Pidgin", "*says*, NULL, NULL, NULL, -1, -1, CRITICAL, MARKUP_NULL, -1, -1, -1, NULL, NULL, NULL, NULL, NULL}, */ /* { "rule3", "Pidgin", "*signed on*", NULL, NULL, NULL, -1, -1, LOW, MARKUP_NULL, -1, -1, -1, NULL, NULL, NULL, NULL, NULL}, */