Skip to content
Browse files

document new placeholder

  • Loading branch information...
1 parent 3162d65 commit bcd3a79b1c0c8ac9b8976052a089b6be609be922 @progandy committed
Showing with 7 additions and 1 deletion.
  1. +5 −0 README.pod
  2. +1 −1 dunst.h
  3. +1 −0 dunstrc
View
5 README.pod
@@ -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
2 dunst.h
@@ -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
1 dunstrc
@@ -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

0 comments on commit bcd3a79

Please sign in to comment.
Something went wrong with that request. Please try again.