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 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);