Thanks Frederic,
    this work for me, but I think that the great solution is don't change
source code!


On Tue, Jan 13, 2009 at 6:20 PM, Frederic Chardon <
[email protected]> wrote:

> 2009/1/13 Luca <[email protected]>:
> > Is there a way to restart dwm after recompiling source without closing
> > clients?
> > This is my current .xsession
> >
> > xsetroot -solid black &
> > xrandr -s 1024x768 &
> >
> > uxterm &
> > firefox &
> >
> > while true; do
> >   xsetroot -name "`date '+%a %Y%m%d %H:%M'`"
> >   sleep 1
> > done &
> >
> > exec /home/lucapost/usr/bin/dwm > /dev/null
> >
> > Thanks, Luca.
>
> Someone posted something similar to this on the list a few time ago:
>
> in dwm.c modify quit() to
> void
> quit(const Arg *arg) {
>    if (arg->i)
>        execlp("dwm", "dwm", NULL);
>    running = False;
> }
>
> and an example in config.h:
>    { MODKEY|ShiftMask,             XK_q,      quit,           {.i = 1} },
>    { MODKEY|ShiftMask|ControlMask, XK_q,      quit,           {.i = 0} },
>
> It will work whatever app is already launched and whatever is in your
> .xinitrc .xsession etc
>
> Regards
>
> Frederic
>
>


-- 
Luca Postregna
Via Postregna 6
33040 Stregna, UD - Italy

Tel.       +393381587782

Reply via email to