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

No icon support in dwmblocks-async #20

Closed JimPix1 closed 2 years ago

JimPix1 commented 2 years ago

In Luke's dwmblocks you could set icons however this seems to have been removed entirely in dwmblocks-async.. why? Do I now need to manually set the icon in the script?

UtkarshVerma commented 2 years ago

Yes, the icons field has been removed intentionally.

This is because setting the icon in the script allows for dynamic icons. For example, you'd want to change the volume icon to mute when volume is zero.

Also, if you have a script called sb-foo, and you want a static icon, then you can simply write echo "$icon $(sb-foo)" as your block command.