Skip to content

Commit

Permalink
omit progress bar hint when drawing own progress bar (-p)
Browse files Browse the repository at this point in the history
see #31

Signed-off-by: Beau Hastings <[email protected]>
  • Loading branch information
hastinbe committed May 6, 2021
1 parent eb23fe5 commit 7ec03b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion volume
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,17 @@ define_notify() {
-t "$EXPIRES"
)
local -a hints=(
int:value:"$vol"
# Replaces previous notification in some notification servers
string:synchronous:volume
# Replaces previous notification in NotifyOSD
string:x-canonical-private-synchronous:volume
)

# If we're not drawing our own progress bar, allow the notification daemon to draw its own (if supported)
if ! $SHOW_VOLUME_PROGRESS; then
hints+=(int:value:"$vol")
fi

(( ${#NOTIFY_CAPS[@]} < 1 )) && load_notify_server_caps

if has_capability icon-static; then
Expand Down

0 comments on commit 7ec03b8

Please sign in to comment.