Skip to content

Commit

Permalink
document new placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
progandy committed Oct 8, 2012
1 parent 3162d65 commit bcd3a79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -131,13 +133,16 @@ 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

=item notify-send -h string:fgcolor:#ff4444

=item notify-send -h string:bgcolor:#4444ff -h string:fgcolor:#ff4444

=item notify-send -h int:value:42 "Working ..."

=back

=head1 CONFIGURATION
Expand Down
2 changes: 1 addition & 1 deletion dunst.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions dunstrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcd3a79

Please sign in to comment.