You are not logged in.

#1 2012-08-03 22:34:15

jbiggs12
Member
From: USA
Registered: 2011-08-07
Posts: 14
Website

Bottom margin in dwm?

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

#2 2012-08-03 22:54:14

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Bottom margin in dwm?

You can't fit dzen2 between the workspace numbers and the systray? It doesn't have to go at the top right...

Offline

#3 2012-08-03 23:18:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Bottom margin in dwm?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2012-08-04 05:08:00

jbiggs12
Member
From: USA
Registered: 2011-08-07
Posts: 14
Website

Re: Bottom margin in dwm?

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 15

And now it works and looks awesome. Thank you! smile

Offline

#5 2012-08-04 05:26:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Bottom margin in dwm?

Nice work. Please remember to mark your thread as [Solved].


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-08-04 05:33:22

jbiggs12
Member
From: USA
Registered: 2011-08-07
Posts: 14
Website

Re: Bottom margin in dwm?

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

#7 2012-08-04 05:42:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Bottom margin in dwm?

It's hidden in the manual... wink


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB