Fix mute indication

This commit is contained in:
Daniel Flanagan 2023-05-24 22:05:11 -05:00
parent a8aca14547
commit b76eb212ef
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 9 additions and 1 deletions

View file

@ -69,10 +69,12 @@ $rosewater: #f5e0dc;
padding-right: 10px;
}
.vol .muted,
.mic .live {
color: #f38ba8;
}
.vol .live,
.mic .muted {
color: #74c7ec;
}

View file

@ -26,7 +26,10 @@
box :class {micMuted == "false" ? "live" : "muted"} {micMuted == "false" ? " " : " "}
) {micVolume + "%"}
)
{"󰕾 " + volume + "%"}
(box :class "vol" (
box :class {muted == "false" ? "live" : "muted"} {muted == "false" ? "󰕾 " : "󰖁 "}
) {volume + "%"}
)
{" " + round(EWW_CPU["avg"], 0) + "%"}
{" " + round(EWW_RAM["used_mem_perc"], 0) + "%"}
{isDesktop == "true" ? "" : " " + brightness + "%"}
@ -46,6 +49,9 @@
(deflisten volume :initial "0"
"pamixer --get-volume; pactl subscribe | grep sink --line-buffered | while read i; do pamixer --get-volume; done")
(deflisten muted :initial "false"
"pamixer --get-mute; pactl subscribe | grep sink --line-buffered | while read i; do pamixer --get-mute; done")
(deflisten micVolume :initial "0"
"pamixer --default-source --get-volume; pactl subscribe | grep source --line-buffered | while read i; do pamixer --default-source --get-volume; done")