Re: [dwm] Reloading running dwm - reload patch

2007-03-22 Thread Oliver Heins
Christian Garbs [EMAIL PROTECTED] writes:

 The while true; do dwm; done loop won't work for me because I use a X
 logon manager (wdm) and with no way to break out of the loop I can't
 get back to the login screen (except from manually killing the X
 server), so the internal dwm reload is great.

Just curious: what's wrong with ctrl-alt-backspace to quit dwm?

Regards,
 olli
-- 
http://www.sopos.org/olli/  GnuPG-Key: gpg --recv-keys 0x9A00D827
GnuPG-Fingerprint: F27A BA8C 1CFB B905 65A8  2544 0F07 B675 9A00 D827
NP: nothing




Re: [dwm] Reloading running dwm - reload patch

2007-03-22 Thread Jeff Zhang

On 3/22/07, Sander van Dijk [EMAIL PROTECTED] wrote:


On 3/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 On (22/03/07 09:06), Anselm R. Garbe wrote:
  To: dynamic window manager dwm@suckless.org
  From: Anselm R. Garbe [EMAIL PROTECTED]
 
  On Thu, Mar 22, 2007 at 09:03:06AM +0100, Oliver Heins wrote:
   Christian Garbs [EMAIL PROTECTED] writes:
  
The while true; do dwm; done loop won't work for me because I use
a X
logon manager (wdm) and with no way to break out of the loop I
can't
get back to the login screen (except from manually killing the X
server), so the internal dwm reload is great.
  
   Just curious: what's wrong with ctrl-alt-backspace to quit dwm?
 
  Exactly. That should work for any setup using an endless loop.
 

 Yes, it will work, but apps you are running in that X also exits. And
 that is all about.

I think arg meant that in that setup one can:
a) exit dwm the normal way to keep looping, and
b) use ctrl-alt-backspace to break out of said loop...



Ctrl-Alt-Backspace will be useless when DontZap option has been set in xorg
etc.


Re: [dwm] Reloading running dwm - reload patch

2007-03-22 Thread Jeff Zhang

On 3/22/07, Sander van Dijk [EMAIL PROTECTED] wrote:


  I think arg meant that in that setup one can:
  a) exit dwm the normal way to keep looping, and
  b) use ctrl-alt-backspace to break out of said loop...

 Ctrl-Alt-Backspace will be useless when DontZap option has been set in
xorg
 etc.

Yes, and the SIGUSR1 patch won't help me if I have removed /bin/kill;
what are you trying to say, besides the obvious?

Greetings, Sander.




Not know much about that, just curious!  :)
If functions are more vital, maybe other wms should be take into
consideration, like fvwm.


Re: [dwm] Reloading running dwm - reload patch

2007-03-22 Thread Enno \Gottox\ Boland

Hi!

Why that complex? I only put this line at the end of my ,xinitrc:

echo -en y\nn | dmenu -p restart? | grep -xq y  exec $0


2007/3/22, Sander van Dijk [EMAIL PROTECTED]:

On 3/22/07, Jeff Zhang [EMAIL PROTECTED] wrote:


 On 3/22/07, Sander van Dijk [EMAIL PROTECTED] wrote:
  On 3/22/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   On (22/03/07 09:06), Anselm R. Garbe wrote:
To: dynamic window manager  dwm@suckless.org
From: Anselm R. Garbe [EMAIL PROTECTED]
   
On Thu, Mar 22, 2007 at 09:03:06AM +0100, Oliver Heins wrote:
 Christian Garbs [EMAIL PROTECTED] writes:

  The while true; do dwm; done loop won't work for me because I use
 a X
  logon manager (wdm) and with no way to break out of the loop I
 can't
  get back to the login screen (except from manually killing the X
  server), so the internal dwm reload is great.

 Just curious: what's wrong with ctrl-alt-backspace to quit dwm?
   
Exactly. That should work for any setup using an endless loop.
   
  
   Yes, it will work, but apps you are running in that X also exits. And
   that is all about.
 
  I think arg meant that in that setup one can:
  a) exit dwm the normal way to keep looping, and
  b) use ctrl-alt-backspace to break out of said loop...

 Ctrl-Alt-Backspace will be useless when DontZap option has been set in xorg
 etc.

Yes, and the SIGUSR1 patch won't help me if I have removed /bin/kill;
what are you trying to say, besides the obvious?

Greetings, Sander.





--
http://www.gnuffy.org - Real Community Distro
http://www.gnuffy.org/index.php/GnuEm - Gnuffy on Ipaq (Codename Peggy)



Re: [dwm] Reloading running dwm - reload patch

2007-03-22 Thread Christian Garbs
On Thu, Mar 22, 2007 at 09:03:06AM +0100, Oliver Heins wrote:
 Christian Garbs [EMAIL PROTECTED] writes:
 
  The while true; do dwm; done loop won't work for me because I use
  a X logon manager (wdm) and with no way to break out of the loop I
  can't get back to the login screen (except from manually killing
  the X server), so the internal dwm reload is great.
 
 Just curious: what's wrong with ctrl-alt-backspace to quit dwm?

I'm remotely logging into the server with the X clients using
X -query $server.  When I do Ctrl+Alt+Backspace, I the whole
X server goes down.  Yes, I could write a loop about the X server
on that machine as well, but I don't want that.

I like the SIGUSR1 approach (which, btw, currently does not work for
me at all, but I'll have to find some time and look why it does not
work, perhaps my way of feeding STDIN to dwm is the problem).

Regards,
Christian
-- 
Christian.Garbs.http://www.cgarbs.de

Wenn man weich auftreten möchte, muss man nicht die ganze Welt mit Leder
bedecken; es reicht, sich Schule anzuziehen.  -- tibetische Weisheit




Re: [dwm] Reloading running dwm - reload patch

2007-03-21 Thread Sander van Dijk

Hi,

On 3/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I created patch for reloading dwm with signal USR1.


Not to put your patch down, but with vanilla dwm you can achieve
something pretty similar by doing this in your .xinitrc:

while true
do
   dwm
done

Greetings, Sander.



Re: [dwm] Reloading running dwm - reload patch

2007-03-21 Thread dfenze
On (21/03/07 16:57), Marek Bernat wrote:
 To: dynamic window manager dwm@suckless.org
 From: Marek Bernat [EMAIL PROTECTED]
 
 On 3/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
 Tried this and it did what I suppose it will do - all applications
 executed from within dwm gets killed.
 With my patch you don't get this behaviour.
 
 
 I am using the while loop and the apps survive the dwm restart.
 
 Regards.

So may I tried it in some bad way ;( 

-Ph



Re: [dwm] Reloading running dwm - reload patch

2007-03-21 Thread Marek Bernat

On 3/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

So may I tried it in some bad way ;(



There's no bad way I suppose, just the while loop :-)
Anyway, dwm is neither doing anything explicit to processes upon exit,
nor implicit,
seeing it's not an ancestor of the managed apps (pstree).
Still, it's strange it doesn't work for you.

Regards.


Re: [dwm] Reloading running dwm - reload patch

2007-03-21 Thread Oliver Heins
Szabolcs Nagy [EMAIL PROTECTED]
writes:
 while true
 do
 cat $DWM_PIPE
 done | /usr/bin/dwm

 it looks like a busy-loop
 shouldn't there be a sleep in there?

Though on the first look it seems to be one, in fact it isn't.
$DWM_PIPE is a fifo, so the loop idles most of the time unless there is
written something new to $DWM_PIPE.  (Should have named $DWM_PIPE
$DWM_FIFO or so, I guess.)


Regards,
 olli


-- 
http://www.sopos.org/olli/  GnuPG-Key: gpg --recv-keys 0x9A00D827
GnuPG-Fingerprint: F27A BA8C 1CFB B905 65A8  2544 0F07 B675 9A00 D827
NP: SS Decontrol - Police Beat




Re: [dwm] Reloading running dwm - reload patch

2007-03-20 Thread Bruno Deferrari

Thank you!! I wanted to do something like this, but now I don't have to :)