Re: [dwm] dwm without statusbar

2007-05-11 Thread Maarten Maathuis

A compile time option is enough imo.

On 5/11/07, Jeroen Schot <[EMAIL PROTECTED]> wrote:


On Fri, May 11, 2007 at 03:15:17PM +0200, Anselm R. Garbe wrote:
> What do others thing about my proposal?

Hello,

I like this idea. I never liked the current #define TOPBAR true/false,
so this seems to me like a more elegant solution with added NOBAR and
runtime switching as a bonus.

TOP->BOT->OFF toggling probably won't work for me, but patching it to
TOP->OFF won't be that difficult I guess :)

Regards,
Jeroen Schot




Re: [dwm] dwm without statusbar

2007-05-11 Thread Jeroen Schot
On Fri, May 11, 2007 at 03:15:17PM +0200, Anselm R. Garbe wrote:
> What do others thing about my proposal?

Hello,

I like this idea. I never liked the current #define TOPBAR true/false,
so this seems to me like a more elegant solution with added NOBAR and
runtime switching as a bonus. 

TOP->BOT->OFF toggling probably won't work for me, but patching it to
TOP->OFF won't be that difficult I guess :)

Regards,
Jeroen Schot



Re: [dwm] dwm without statusbar

2007-05-11 Thread markus schnalke
Anselm R. Garbe <[EMAIL PROTECTED]> wrote:
> a) You want make dwm simplier ...


wasn't the old way to KISS?

customizing should be done by patching source code

right?


yes, a switch like suggested would surely be nice
... but perhaps simple would be better!?




just to think about

Meillo  r e t u r n s



Re: [dwm] dwm without statusbar

2007-05-11 Thread Alessandro Dotti Contra
On Fri, May 11, 2007 at 03:15:17PM +0200, Anselm R. Garbe wrote:
|
|What do others thing about my proposal?

b) option is really nice.

ciao
alex

-- 
Alessandro Dotti Contra | email:  [EMAIL PROTECTED]
Bologna, Italy  | PGP Key ID: 0x9C84C3DA
http://www.hyboria.org/ | jabber: [EMAIL PROTECTED]
| gtalk:  [EMAIL PROTECTED]



[dwm] A couple of patches

2007-05-11 Thread Jan Christoph Ebersbach
Hi,

I've updated a couple of old patches to the current tip and created some
small convenience patches.

updated to current tip:
moveresize
save_floats

new:
tagall - move all floating windows together to a certain tag
maxmize_vert_horz - maximizes floating windows vertically and
horizontally

You can download them here:
https://herbst.homeunix.org/projects/repos/hg/dwm_patches/
-- 
Jan Christoph Ebersbach
Have you ever read God's love letter to you? http://www.gottkennen.com/


signature.asc
Description: Digital signature


Re: [dwm] dwm without statusbar

2007-05-11 Thread lobzang
well I'm interested in both a & b  :)

a) I would then simply use dzen to notify any interesting information
( too much cpu / im conversation..) 

b) that would be perfect indeed to show/hide the statusbar, so I could
forget a) !

On Fri, 2007-05-11 at 15:15 +0200, Anselm R. Garbe wrote:

> Is b) of your taste? I consider this useful, to have the
> possibility to hide or move the bar somewhere else on demand.
> 
> What do others thing about my proposal? 


Lobzang
___
http://lobzang.free.fr




Re: [dwm] dwm without statusbar

2007-05-11 Thread Diego Biurrun
On Fri, May 11, 2007 at 03:15:17PM +0200, Anselm R. Garbe wrote:
> On Fri, May 11, 2007 at 02:59:36PM +0200, lobzang wrote:
> > just a simple question , is it possible to have dwm without any status
> > bar ?  (just a blank screen in fact)
> 
> It is possible if you hack the code, though it is dependent from
> your intention, there are two motivations for this:
> 
> a) You want make dwm simplier, so you might want remove the code
> responsible for drawing/creating/resizing the status bar
> completely.
> 
> b) You only don't like the status bar on the screen, so you
> might want add a togglebar() function which shows/hides the
> status bar and performs a rearrange() accordingly - actually I
> even consider this an interesting option for mainstream dwm,
> because this way, one could define an
> 
> enum { BarTop, BarBot, BarOff };
> 
> and implement a togglebar() function which toggles between those
> modes. #define BARPOS BarOff in config.h could be then use to
> hide the bar by default.
> 
> Is b) of your taste? I consider this useful, to have the
> possibility to hide or move the bar somewhere else on demand.
> 
> What do others thing about my proposal?

I would appreciate such an option.

Diego



Re: [dwm] dwm without statusbar

2007-05-11 Thread paul liljenberg

I really like the b option and it would be very usefull to my setup. I
hope to see this option soon :D

On 5/11/07, Anselm R. Garbe <[EMAIL PROTECTED]> wrote:

On Fri, May 11, 2007 at 02:59:36PM +0200, lobzang wrote:
> just a simple question , is it possible to have dwm without any status
> bar ?  (just a blank screen in fact)

It is possible if you hack the code, though it is dependent from
your intention, there are two motivations for this:

a) You want make dwm simplier, so you might want remove the code
responsible for drawing/creating/resizing the status bar
completely.

b) You only don't like the status bar on the screen, so you
might want add a togglebar() function which shows/hides the
status bar and performs a rearrange() accordingly - actually I
even consider this an interesting option for mainstream dwm,
because this way, one could define an

enum { BarTop, BarBot, BarOff };

and implement a togglebar() function which toggles between those
modes. #define BARPOS BarOff in config.h could be then use to
hide the bar by default.

Is b) of your taste? I consider this useful, to have the
possibility to hide or move the bar somewhere else on demand.

What do others thing about my proposal?

void
togglebar(const char *arg)
{
barpos = ++barpos % 3;
way = sy;
wah = sh;
switch(barpos) {
case BarTop:
way += bh;
XMoveWindow(dpy, barwin, sx, sy);
case BarBot:
wah -= bh;
XMoveWindow(dpy, barwin, sx, sy + sh - bh);
break;
case BarOff:
XMoveWindow(dpy, barwin, sx, sy - bh);
break;
}
lt->arrange();
}

Note, not tested, but something like that is in my mind.

Regards,
--
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361






Re: [dwm] dwm without statusbar

2007-05-11 Thread Anselm R. Garbe
On Fri, May 11, 2007 at 02:59:36PM +0200, lobzang wrote:
> just a simple question , is it possible to have dwm without any status
> bar ?  (just a blank screen in fact)

It is possible if you hack the code, though it is dependent from
your intention, there are two motivations for this:

a) You want make dwm simplier, so you might want remove the code
responsible for drawing/creating/resizing the status bar
completely.

b) You only don't like the status bar on the screen, so you
might want add a togglebar() function which shows/hides the
status bar and performs a rearrange() accordingly - actually I
even consider this an interesting option for mainstream dwm,
because this way, one could define an

enum { BarTop, BarBot, BarOff };

and implement a togglebar() function which toggles between those
modes. #define BARPOS BarOff in config.h could be then use to
hide the bar by default.

Is b) of your taste? I consider this useful, to have the
possibility to hide or move the bar somewhere else on demand.

What do others thing about my proposal?

void
togglebar(const char *arg)
{
barpos = ++barpos % 3;
way = sy;
wah = sh;
switch(barpos) {
case BarTop:
way += bh;
XMoveWindow(dpy, barwin, sx, sy);
case BarBot:
wah -= bh;
XMoveWindow(dpy, barwin, sx, sy + sh - bh);
break;
case BarOff:
XMoveWindow(dpy, barwin, sx, sy - bh);
break;
}
lt->arrange();
}

Note, not tested, but something like that is in my mind.

Regards,
-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361



[dwm] dwm without statusbar

2007-05-11 Thread lobzang
Hi all,

just a simple question , is it possible to have dwm without any status
bar ?  (just a blank screen in fact)



Lobzang
___
http://lobzang.free.fr




[dwm] a few problems with dwm tip and mplayer

2007-05-11 Thread Geoffroy Carrier
Hi!

I have a few problems with mplayer, using tip.
How you should be able to reproduce them:

 - Resize mplayer (MODKEY+right clic), move the pointer at the top and
   right of the top-left corner of its window. It takes the aspect of a
   few-pixel-high large rectangle.
 - Use BORDERPX=2, put mplayer in fullscreen mode (f key). The left and
   top parts of the border stay visible.
 - Maximize mplayer's window using MODKEY+m, with a 1920x1200 screen,
   monitorsaspect=16:10 in .mplayer/config, while playing a 4:3 movie.
   Its window is higher than the screen, and less large.

   i.e. (with a squared font):

   |VSVSV|SS| V video
   |VSVSV|SS| S screen
   |VSVSV|SS|
   |VSVSV|SS|
   |_|__|
   |V|
   |_|


-- 
Geoffroy Carrier
http://sitlib.org/



Re: [dwm] BUG? firefox save as dialog

2007-05-11 Thread Xavier

2007/5/11, Greg B <[EMAIL PROTECTED]>:


thats true but if u do that (its the way i use it atm),  the save as window
expands too much covering 1/3 of the whole desktop and eben though u can
make it smaller ,next time it opens again it has the same big size. that
seems to depend on the filename too though. if its too small the window
might be small too. its quite irritating cause it behaves differently each
time



I applied this patch from the gnome bugzilla link I gave above :
http://bugzilla.gnome.org/attachment.cgi?id=87812&action=view
and it works fine for me.



Re: [dwm] testing URL

2007-05-11 Thread Anselm R. Garbe
On Thu, May 10, 2007 at 07:51:31PM +, David Tweed wrote:
> |Bug 35236 Z\200\223
> |
> |where Z is actually a square shape with p (unsigned char)sel->name[10] gives 
> 226.
> 
> Just as a quick debugging verification, I added a "scrubber" that replaced 
> any bytes not in 0-127
> with spaces when name is being set and with that the lock up doesn't happen.
> But presumably even if xlib can't render
> the bytestream "correctly" with the particular fonts available on my system 
> (which I've got no idea about),
> it shouldn't totally hang, right?

Yes, it shouldn't hang at all. Characters X cannot draw, should
be ignored by X... this looks like an X bug, however, I'm not
sure if signedness issues are related to this, hmm.

Regards,
-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361