[dwm] I merged the whole source to one file and wanna let you know the implications

2007-09-16 Thread Anselm R. Garbe
I think one can argue a lot about how to organize source code the right way. Especially if your codebase is huge. Anyway, I realized that I reorganized the dwm code base a couple of times, and this has been due to one fact: dwm's code base has been organized following two different paradigms - sep

Re: [dwm] Updated bottom stack patch

2007-09-16 Thread Anselm R. Garbe
Hi James, cool, I want to give an example how your patch should be reorganized that it works with less of a hassle beginning with dwm-4.5: Imagine bstack.c: /* by James */ static void bstack(void) { unsigned int i, n, nx, ny, nw, nh, mh, tw, th; Client *c; for(n = 0, c =

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Anselm R. Garbe
On Sun, Sep 16, 2007 at 01:29:03PM +0200, Anselm R. Garbe wrote: > On Sat, Sep 15, 2007 at 10:00:43AM +0200, Anselm R. Garbe wrote: > > On Fri, Sep 14, 2007 at 11:36:41PM +0200, Damjan Vrencur wrote: > > > Hi! > > > > > > Today I spent a few hours working under Xmonad window manager. Curiosity >

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Anselm R. Garbe
On Sat, Sep 15, 2007 at 10:00:43AM +0200, Anselm R. Garbe wrote: > On Fri, Sep 14, 2007 at 11:36:41PM +0200, Damjan Vrencur wrote: > > Hi! > > > > Today I spent a few hours working under Xmonad window manager. Curiosity ... > > There was one feature I found quite useful: > > When you use mouse t

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Antoni Grzymala
Tako rzecze Anselm R. Garbe (w e-mailu datowanym 2007-09-16, 14:34): > So there arises a question. Traditionally in dwm Mod-Button2 > was introduced for zooming clients in tiled mode. But now I more > and more come to the conclusing, that this should be > togglefloating() instead. Is there anyone

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Damjan Vrencur
On Sunday 16 of September 2007 14:48:22 Antoni Grzymala wrote: > Honestly -- first time I've heard about it. Me too. But since Mod-Button1 does the same provided you don't move mouse, isn't it better to use Mod-Button2 for something else? I checked the latest tip and it seems to work nice exce

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Damjan Vrencur
> I think it's really useful. However I also implemented > Mod-Button2 for toggling such floating clients back to tiled. Sorry, part of a previous message was nonsense. -- Damjan Vrenčur <~> http://lmmri.fri.uni-lj.si/damjan/ <~> GPG key: C6A3146F

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Anydot
On (16/09/07 15:13), Damjan Vrencur wrote: > > But since Mod-Button1 does the same provided you don't move mouse, isn't it > better to use Mod-Button2 for something else? > > I checked the latest tip and it seems to work nice except that now I got some > unused space between clients. Screenshot

Re: [dwm] Mouse over tile ...

2007-09-16 Thread pancake
I have always find the mod-click2 feature quite useful and handy, I have been using it since the beggining. Please do not remove it. Mod-Click1 to make windows floating looks cleaner to me. On Sun, 16 Sep 2007 15:13:17 +0200 Damjan Vrencur <[EMAIL PROTECTED]> wrote: > On Sunday 16 of September

[dwm] Unused space between clients

2007-09-16 Thread Xavier
On Sun, Sep 16, 2007 at 03:13:17PM +0200, Damjan Vrencur wrote: > I checked the latest tip and it seems to work nice except that now I got some > unused space between clients. Screenshot: > http://lmmri.fri.uni-lj.si/damjan/dwmScreenshot.png > That space is much smaller here. And this is actual

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Damjan Vrencur
> change: > #define RESIZEHINTS True > in config.h to: > #define RESIZEHINTS False Tnx. Works great, no unused space left. -- Damjan Vrenčur <~> http://lmmri.fri.uni-lj.si/damjan/ <~> GPG key: C6A3146F

Re: [dwm] Updated bottom stack patch

2007-09-16 Thread James Turner
On Sun, Sep 16, 2007 at 01:18:24PM +0200, Anselm R. Garbe wrote: > Hi James, > > cool, I want to give an example how your patch should be > reorganized that it works with less of a hassle beginning with dwm-4.5: [snip] Thanks for the great example, that will especially make things easier while t

Re: [dwm] Updated bottom stack patch

2007-09-16 Thread Julien Danjou
At 1189952943 time_t, James Turner wrote: > Thanks for the great example, that will especially make things > easier while the code is still being changed. I think before 4.4 was > released I probably rewrote my patch at least a dozen times to work with > the changing source tree. This of course w

Re: [dwm] Updated bottom stack patch

2007-09-16 Thread Szabolcs Nagy
On 9/16/07, Julien Danjou <[EMAIL PROTECTED]> wrote: > Except for people applying multiple patch on the now same and uniq file. > Everything will be fuzzy. that's why you should put your modifications in a separate .c file if possible

Re: [dwm] Proper way of monitoring battery level in DWM

2007-09-16 Thread Albert Cardona
MAX_BATTERY_CAPACITY=84240 while true do echo `date '+%Y%m%d %H:%M'` `uptime | sed 's/.*: \(.\...\),.*/\1/'` $(( (`cat /proc/acpi/battery/BAT0/state | grep "remaining capacity" | sed 's/.*: \{5,\}\(.*\) mWh/\1/'` * 100) / $MAX_BATTERY_CAPACITY))"%" sleep 20 done | /home/albert/

Re: [dwm] Mouse over tile ...

2007-09-16 Thread Anselm R. Garbe
On Sun, Sep 16, 2007 at 03:51:19PM +0200, pancake wrote: > I have always find the mod-click2 feature quite useful and handy, I have been > using it since the beggining. > > Please do not remove it. Mod-Click1 to make windows floating looks cleaner to > me. Well there must be a simple way to put

Re: [dwm] Unused space between clients

2007-09-16 Thread Anselm R. Garbe
On Sun, Sep 16, 2007 at 03:49:06PM +0200, Xavier wrote: > On Sun, Sep 16, 2007 at 03:13:17PM +0200, Damjan Vrencur wrote: > > I checked the latest tip and it seems to work nice except that now I got > > some > > unused space between clients. Screenshot: > > http://lmmri.fri.uni-lj.si/damjan/dwmS

[dwm] Fwd: Auto-discard notification

2007-09-16 Thread Anselm R. Garbe
The attached message has been automatically discarded. arg: > On Sun, Sep 16, 2007 at 03:51:19PM +0200, pancake wrote: > > I have always find the mod-click2 feature quite useful and handy, I have > > been > > using it since the beggining. > > > > Please do not remove it. Mod-Click1 to make windo

Re: [dwm] I merged the whole source to one file and wanna let you know the implications

2007-09-16 Thread lobzang
That works, and I agree that's simpler. On Sun, 2007-09-16 at 13:06 +0200, Anselm R. Garbe wrote: > I think one can argue a lot about how to organize source code > the right way. Especially if your codebase is huge. > > Anyway, I realized that I reorganized the dwm code base a couple > of times

Re: [dwm] Proper way of monitoring battery level in DWM

2007-09-16 Thread Amit
Thank you for all the responses. Actually right now, I am using apm. I am not sure if acpi is supported on my notebook. This is an old PowerBook G4 500MHz. I will try modifying the scripts to use apm instead of acpi. Amit

Re: [dwm] Proper way of monitoring battery level in DWM

2007-09-16 Thread Riccardo Murri
On 9/16/07, Amit <[EMAIL PROTECTED]> wrote: > Actually right now, I am using apm. I am not sure if acpi is supported > on my notebook. This is an old PowerBook G4 500MHz. I will try > modifying the scripts to use apm instead of acpi. > If it's a PowerBook G4, then it's using PMU, not ACPI nor APM.

Re: [dwm] Proper way of monitoring battery level in DWM

2007-09-16 Thread James Turner
On Sep 16, 2007, at 4:34 PM, Amit wrote: Thank you for all the responses. Actually right now, I am using apm. I am not sure if acpi is supported on my notebook. This is an old PowerBook G4 500MHz. I will try modifying the scripts to use apm instead of acpi. Amit I just use something like thi

[dwm] [patch] Multihead Layout

2007-09-16 Thread Timothy Elliott
I often connect my laptop to an external monitor and use it to extend my desktop. This patch adds a new layout 'multihead' which uses Xrandr to detect the configuration of monitors, and adjusts window sizes accordingly. Here is my X screen layout: -- | | | | | | ---