We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a84e283 + 1b3124e commit 381425eCopy full SHA for 381425e
pulseaudio-control.bash
@@ -387,7 +387,12 @@ function output() {
387
if [ "$IS_MUTED" = "yes" ]; then
388
# shellcheck disable=SC2034
389
VOL_ICON=$ICON_MUTED
390
- echo "${COLOR_MUTED}$(eval echo "$FORMAT")${END_COLOR}"
+ content="$(eval echo "$FORMAT")"
391
+ if [ -n "$COLOR_MUTED" ]; then
392
+ echo "${COLOR_MUTED}${content}${END_COLOR}"
393
+ else
394
+ echo "$content"
395
+ fi
396
else
397
eval echo "$FORMAT"
398
fi
@@ -406,6 +411,7 @@ Options:
406
411
Default: \"$AUTOSYNC\"
407
412
--color-muted <rrggbb>
408
413
Color in which to format when muted.
414
+ Pass empty string to disable.
409
415
Default: \"${COLOR_MUTED:4:-1}\"
410
416
--notifications | --no-notifications
417
Whether to show notifications when changing nodes.
0 commit comments