diff --git a/README.pod b/README.pod index ef97a75..df50551 100644 --- a/README.pod +++ b/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 diff --git a/dunst.h b/dunst.h index 784cb9e..5e56f23 100644 --- a/dunst.h +++ b/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 { diff --git a/dunstrc b/dunstrc index c59ae94..9955fe2 100644 --- a/dunstrc +++ b/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