UtkarshVerma / dwmblocks-async

An efficient, lean, and asynchronous status feed generator for dwm.
GNU General Public License v2.0
232 stars 87 forks source link

double output in statusbar #12

Closed twoeightdev closed 2 years ago

twoeightdev commented 2 years ago

Hi sir, do you know why the blocks doubling up? specially the one with icons. it is fixed if i change the volume, this is common when at first boot of pc. Issue

UtkarshVerma commented 2 years ago

Hmm, that's weird. Could you show me your config and the volume script?

twoeightdev commented 2 years ago

Hmm, that's weird. Could you show me your config and the volume script?

im using your script

. sb-theme
if [ $(pamixer --get-mute) = true ]; then
    display "婢" "$color2"
    exit
fi

vol="$(pamixer --get-volume)"

if [ "$vol" -gt 70 ]; then
    icon=" "
elif [ "$vol" -gt 40 ]; then
    icon="墳 "
elif [ "$vol" -gt 10 ]; then
    icon=" "
else
    icon="奄 "
fi

display "$icon$vol%"
UtkarshVerma commented 2 years ago

@hoaxdream Thanks for reporting the bug. It should be fixed now. In case there's still an issue, feel free to reopen this issue.