document new placeholder
This commit is contained in:
parent
3162d6569e
commit
bcd3a79b1c
@ -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<%I> iconname (without its path)
|
||||||
|
|
||||||
|
=item B<%p> progress value if set ([ 0%] to [100%]) or nothing
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=head1 COLORS
|
=head1 COLORS
|
||||||
@ -131,6 +133,7 @@ X color names.
|
|||||||
|
|
||||||
dunst is able to get different colors for a message via notify-send.
|
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.
|
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
|
=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 string:bgcolor:#4444ff -h string:fgcolor:#ff4444
|
||||||
|
|
||||||
|
=item notify-send -h int:value:42 "Working ..."
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=head1 CONFIGURATION
|
=head1 CONFIGURATION
|
||||||
|
2
dunst.h
2
dunst.h
@ -54,7 +54,7 @@ typedef struct _notification {
|
|||||||
int dup_count;
|
int dup_count;
|
||||||
ColorSet *colors;
|
ColorSet *colors;
|
||||||
char *color_strings[2];
|
char *color_strings[2];
|
||||||
int progress;
|
int progress; /* percentage + 1, 0 to hide */
|
||||||
} notification;
|
} notification;
|
||||||
|
|
||||||
typedef struct _notification_buffer {
|
typedef struct _notification_buffer {
|
||||||
|
1
dunstrc
1
dunstrc
@ -7,6 +7,7 @@
|
|||||||
# %b body
|
# %b body
|
||||||
# %i iconname (including its path)
|
# %i iconname (including its path)
|
||||||
# %I iconname (without its path)
|
# %I iconname (without its path)
|
||||||
|
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||||
format = "%s %b"
|
format = "%s %b"
|
||||||
|
|
||||||
# Sort messages by urgency
|
# Sort messages by urgency
|
||||||
|
Loading…
x
Reference in New Issue
Block a user