Hello Hugues,
On Sun, Dec 16, 2012 at 08:43:34PM +0100, Hugues Moretto-Viry wrote:
> I tried this with the urxvt -geometry 80x23+200+0 but it doesn't work. I'm
The attached patch allow you to call functions as part of the Rules
array in config.h. You could make a function to position the window
where you would like and add that as a callback, something like this:
static Rule rules[] = {
/* class instance title tags floating monitor
callback */
{ "urxvt", "urxvt", NULL, TAG(1), True, -1,
move_urxvt },
};
Eric
--- a/dwm.c 2012-12-06 20:11:18.000000000 -0600
+++ b/dwm.c 2012-12-06 20:11:18.000000000 -0600
@@ -152,6 +152,7 @@
unsigned int tags;
Bool isfloating;
int monitor;
+ void (*callback)(Client *c);
} Rule;
/* function declarations */
@@ -316,6 +317,8 @@
for(m = mons; m && m->num != r->monitor; m = m->next);
if(m)
c->mon = m;
+ if(r->callback)
+ (*r->callback)(c);
}
}
if(ch.res_class)