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

statusbar is covered by wm_name and has strange square displayed in blocks #22

Closed yuandi42 closed 2 years ago

yuandi42 commented 2 years ago

1648108915 Above is my statusbar. And as the screenshot can speak itself, the statusbar is wrongly coverd and squares appear in blocks.

For the first problem, I changed #define CMDLENGTH from 60 to 100, and it didn't worked.

For the second problem, I've looked through #13, but unfortunately I don't use bakkeby/dwm-flexipatch, so his solution doesn't work for me (while I've patched statuscmd and corrected getstatusbarpid()).

Here's my config.h for dwmblocks

#define CMDLENGTH 100
#define DELIMITER "|"
#define CLICKABLE_BLOCKS

const Block blocks[] = {
    BLOCK("sb-battery", 60,    0),
    BLOCK("sb-volume",   0,    3),
    BLOCK("sb-light",    0,    2),
    BLOCK("sb-date",    30,    0)
};

And my build of dwm is here.

UtkarshVerma commented 2 years ago

You need to apply the statuscmd patch to dwm as mentioned in the README.

yuandi42 commented 2 years ago

Well, as I mentioned above, I've patched statuscmd, and modified getstatusbarpid(). I guess the wrong length of status bar may be caused by some bugs in drawbar function in dwm.c, but I still have no idea why those strange squares appear in blocks.

yuandi42 commented 2 years ago

Okay, I just figured out that those problems caused by patches conflict. Fixed after modified my build of dwm. Thank you anyway.