You are not logged in.
Hi,
I was wondering how to modify dwm.c in order to get a bottom margin, in order to have a little dzen2 bar for conky. Currently my dwm has the systray patch, so putting dzen2 up at the top right would hide the systray icons as they filled up. I've fished around the internet trying to find a thread that addresses it, but they all seem to be for an older version of dwm (I'm running dwm 6.0) because I haven't been able to find the appropriate line in dwm.c that corresponds to what they've modified.
Any and all help would be appreciated.
Offline
You can't fit dzen2 between the workspace numbers and the systray? It doesn't have to go at the top right...
Offline
Have you tried this? https://bbs.archlinux.org/viewtopic.php … 12#p570712
Offline
Got it to work. Found the following section:
m->mx = m->wx = unique[i].x_org;
m->my = m->wy = unique[i].y_org;
m->mw = m->ww = unique[i].width;
m->mh = m->wh = unique[i].height - BOTTOM_BAR_HEIGHT;
updatebarpos(m);and added BOTTOM_BAR_HEIGHT. Then I defined it in config.h:
#define BOTTOM_BAR_HEIGHT 15And now it works and looks awesome. Thank you! ![]()
Offline
Nice work. Please remember to mark your thread as [Solved].
Offline
Feel free to call me an idiot, but I can't seem to find the appropriate link on the thread to do that. x)
Offline