From 702abc7a031cb95d8b4ab8599e2df5f227631c5b Mon Sep 17 00:00:00 2001 From: fwsmit Date: Wed, 5 May 2021 13:03:16 +0200 Subject: [PATCH 1/2] dbus: Add a hint for changing the highlight color --- src/dbus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dbus.c b/src/dbus.c index 199f77d..29b5feb 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -386,6 +386,11 @@ static struct notification *dbus_message_to_notification(const gchar *sender, GV g_variant_unref(dict_value); } + if ((dict_value = g_variant_lookup_value(hints, "hlcolor", G_VARIANT_TYPE_STRING))) { + n->colors.highlight = g_variant_dup_string(dict_value, NULL); + g_variant_unref(dict_value); + } + if ((dict_value = g_variant_lookup_value(hints, "category", G_VARIANT_TYPE_STRING))) { n->category = g_variant_dup_string(dict_value, NULL); g_variant_unref(dict_value); From e898fa589aead1d3804c28b85c35a857e7c01366 Mon Sep 17 00:00:00 2001 From: fwsmit Date: Wed, 5 May 2021 13:03:52 +0200 Subject: [PATCH 2/2] docs: Document all dbus hints --- docs/dunst.5.pod | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs/dunst.5.pod b/docs/dunst.5.pod index 3f855dc..bf4d59e 100644 --- a/docs/dunst.5.pod +++ b/docs/dunst.5.pod @@ -941,6 +941,46 @@ dunst is able to get different colors for a message via notify-send. In order to do that you have to add a hint via the -h option. The progress value can be set with a hint, too. +B + +See RULES for more detailed explanations for some options. + +=over 4 + +=item B: +Foreground cololor + +=item B: +Background color + +=item B: +Frame color + +=item B: +Highlight color + +=item B: +Progress value. + +=item B: +Icon name. This may be a path or just the icon name. + +=item B: +A stream of raw image data. + +=item B: +The category. + +=item B: +The desktop entry. + +=item B: +The transient value. + +=back + +B + =over 4 =item notify-send -h string:fgcolor:#ff4444