Skip to content

Commit

Permalink
Merge pull request #72 from fabian-thomas/nomutedcolor
Browse files Browse the repository at this point in the history
add option to disable color muted
  • Loading branch information
marioortizmanero authored Nov 8, 2022
2 parents a84e283 + 1b3124e commit 381425e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pulseaudio-control.bash
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,12 @@ function output() {
if [ "$IS_MUTED" = "yes" ]; then
# shellcheck disable=SC2034
VOL_ICON=$ICON_MUTED
echo "${COLOR_MUTED}$(eval echo "$FORMAT")${END_COLOR}"
content="$(eval echo "$FORMAT")"
if [ -n "$COLOR_MUTED" ]; then
echo "${COLOR_MUTED}${content}${END_COLOR}"
else
echo "$content"
fi
else
eval echo "$FORMAT"
fi
Expand All @@ -406,6 +411,7 @@ Options:
Default: \"$AUTOSYNC\"
--color-muted <rrggbb>
Color in which to format when muted.
Pass empty string to disable.
Default: \"${COLOR_MUTED:4:-1}\"
--notifications | --no-notifications
Whether to show notifications when changing nodes.
Expand Down

0 comments on commit 381425e

Please sign in to comment.