diff --git a/os/linux/eww/eww.scss b/os/linux/eww/eww.scss index 1e54c74..0188fb5 100644 --- a/os/linux/eww/eww.scss +++ b/os/linux/eww/eww.scss @@ -69,10 +69,12 @@ $rosewater: #f5e0dc; padding-right: 10px; } +.vol .muted, .mic .live { color: #f38ba8; } +.vol .live, .mic .muted { color: #74c7ec; } \ No newline at end of file diff --git a/os/linux/eww/eww.yuck b/os/linux/eww/eww.yuck index 152c9e5..18adeed 100644 --- a/os/linux/eww/eww.yuck +++ b/os/linux/eww/eww.yuck @@ -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")