document new placeholder

This commit is contained in:
progandy 2012-10-08 12:38:53 +02:00
parent 3162d6569e
commit bcd3a79b1c
3 changed files with 7 additions and 1 deletions

View File

@ -119,6 +119,8 @@ fmt is a string containing placeholders. The placeholders will be replaced with
=item B<%I> iconname (without its path)
=item B<%p> progress value if set ([ 0%] to [100%]) or nothing
=back
=head1 COLORS
@ -131,6 +133,7 @@ X color names.
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.
=over 4
@ -138,6 +141,8 @@ In order to do that you have to add a hint via the -h option.
=item notify-send -h string:bgcolor:#4444ff -h string:fgcolor:#ff4444
=item notify-send -h int:value:42 "Working ..."
=back
=head1 CONFIGURATION

View File

@ -54,7 +54,7 @@ typedef struct _notification {
int dup_count;
ColorSet *colors;
char *color_strings[2];
int progress;
int progress; /* percentage + 1, 0 to hide */
} notification;
typedef struct _notification_buffer {

View File

@ -7,6 +7,7 @@
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
format = "%s %b"
# Sort messages by urgency