You are not logged in.
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
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
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
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
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.
This will surely give me courage to tinker more with dwm.c.
Last edited by Ashren (2008-03-04 20:48:44)
Offline
glad i guessed right
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
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.pngThis will surely give me courage to tinker more with dwm.c.
Hey cool, Ashren. Mind if I have your dzen config?
Offline
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