More statusbar tweaks.

This commit is contained in:
Bartek Stalewski 2022-04-14 15:32:26 +02:00
parent f901b1b63e
commit a276c195cb
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ else
elif [ "$mic" -eq 0 ] && [ "$vol" -eq 0 ]; then
printf "^c#ffffff^^b#770000^\uf131 mute | \ufa80 mute^d^"
else
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micinfo="^c#ffffff^^b#770000^\uf131 mute | ^d^" || micinfo=""
[ $(pactl get-source-mute @DEFAULT_SOURCE@ | awk -F': ' '{print $2}') = yes ] || [ "$mic" -eq 0 ] && micinfo="^c#ffffff^^b#770000^\uf131 mute^d^ | " || micinfo=""
[ $(pactl get-sink-mute @DEFAULT_SINK@ | awk -F': ' '{print $2}') = yes ] || [ "$vol" -eq 0 ] && volinfo="^c#ffffff^^b#770000^\ufa80 mute^d^" || volinfo="\uf028 ${vol}%%"
printf "${micinfo}${volinfo}"
fi

View File

@ -4,8 +4,8 @@ static const Block blocks[] = {
{"", "sb-emerge", 1, 0 },
{"", "sb-mail", 60, 16 },
{"", "sb-volume", 0, 12 },
{"\uf1eb ", "sb-network", 1, 0 },
{"\uf241 ", "sb-battery", 3, 0 },
{"\uf1eb ", "sb-network", 1, 0 },
{"\uf073 ", "date '+[%e] %I:%M:%S %p |'", 1, 0 },
};