You are not logged in.

#1 2008-03-03 21:09:14

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Dwm - How do I make room for a dzen2 panel? wah/wax??

I've been reading the dwm mailinglist for some time and everytime the question of two statusbars comes up dwm guys refer to wah and wax. I understand that these variables reside in the dwm.c, but if I would want a 15 pixel gap at the top of my screen what should I change?

I appreciate any answer that would guide or help me in any way.

Thanks

Last edited by Ashren (2008-03-03 21:09:38)

Offline

#2 2008-03-04 01:11:14

F
Member
Registered: 2006-10-09
Posts: 322

Re: Dwm - How do I make room for a dzen2 panel? wah/wax??

i'm not sure what you're asking, a 15 pixel gap?
So you want the status bar to look like:

[1=2=3=etc.===========]               [=============]

?

Last edited by F (2008-03-04 01:11:39)

Offline

#3 2008-03-04 01:57:10

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Dwm - How do I make room for a dzen2 panel? wah/wax??

He's saying he wants to know how to create a 15px margin between the top of his screen and the applications he has open--space for a panel to appear along the top of his screen.


thayer williams ~ cinderwick.ca

Offline

#4 2008-03-04 02:23:24

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Dwm - How do I make room for a dzen2 panel? wah/wax??

in dwm.c in the setup function:

        sx = sy = 0;
        sw = DisplayWidth(dpy, screen);
        sh = DisplayHeight(dpy, screen);

changing it to

        sx = 0;
        sx = 15;
        sw = DisplayWidth(dpy, screen);
        sh = DisplayHeight(dpy, screen) - 15;

may do the trick.  emphasis on the may, i havent tested.  this is the area of dwm.c you want to focus on either way.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#5 2008-03-04 20:27:09

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Dwm - How do I make room for a dzen2 panel? wah/wax??

Thank you rson451 your recommendation worked out, although after I decided to have dzen2 at the bottom of the screen sx =15; was not needed.

Here's a scrot:
200803042122061440x900syi8.th.png

This will surely give me courage to tinker more with dwm.c.

Last edited by Ashren (2008-03-04 20:48:44)

Offline

#6 2008-03-04 21:02:32

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Dwm - How do I make room for a dzen2 panel? wah/wax??

glad i guessed right smile


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#7 2008-03-05 00:57:57

F
Member
Registered: 2006-10-09
Posts: 322

Re: Dwm - How do I make room for a dzen2 panel? wah/wax??

Ashren wrote:

Thank you rson451 your recommendation worked out, although after I decided to have dzen2 at the bottom of the screen sx =15; was not needed.

Here's a scrot:
http://img160.imageshack.us/img160/6339 … yi8.th.png

This will surely give me courage to tinker more with dwm.c.

Hey cool, Ashren. Mind if I have your dzen config?

Offline

#8 2008-03-05 06:38:50

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Dwm - How do I make room for a dzen2 panel? wah/wax??

Sure, F. I changed it a bit after that scrot:

~/bin/conky-cli2 -c ~/.conkyrc6 | dzen2 -y 883 -fg '#e5e5e5' -bg '#43464f' -ta c -sa c -fn '-*-dina-medium-r-*-*-15-*-*-*-*-*-iso8859-1' -p -e'' &

and the .conkyrc

background no
out_to_console yes
update_interval 1
total_run_times 0
uppercase no 
use_spacer yes

TEXT
^bg(#9ab8c2) ^fg(#528d4d)^i(/home/edgar/dzen_bitmaps/xbm8x8/net_down_01.xbm)^fg(#43464f)${downspeed eth0} ^fg(#6ba481)^i(/home/edgar/dzen_bitmaps/xbm8x8/net_up_01.xbm)^fg(#43464f)${upspeed eth0} ^r(2x15) ^fg(#0e661a)^i(/home/edgar/dzen_bitmaps/xbm8x8/mem.xbm)^fg(#43464f) $mem of $memmax ^r(2x15) ^fg(#9b922d)^i(/home/edgar/dzen_bitmaps/xbm8x8/diskette.xbm)^fg(#43464f) $fs_used of $fs_size ^r(2x15)^fg(#b79531) ^i(/home/edgar/dzen_bitmaps/xbm8x8/cpu.xbm)^fg(#43464f) C1 ${cpu cpu0}% C2 ${cpu cpu1}% ^r(2x15) ^fg(#ed9b38)^i(/home/edgar/dzen_bitmaps/xbm8x8/fs_01.xbm)^fg(#43464f) ${execi 300 /home/edgar/bin/vejr "EUR|DK|DA012|KOBENHAVN"} ^r(2x15)^fg(#df852f) ^i(/home/edgar/dzen_bitmaps/xbm8x8/clock.xbm)^fg(#43464f) ${time %a. %d. %b. %H:%M:%S}

Offline

Board footer

Powered by FluxBB