Re: How to kill all the windows on a desktop?

Bernd Eggink <[email protected]>
Newsgroups gmane.comp.window-managers.icewm.user
Message-ID <[email protected]>
Am 12.07.2010 02:15, schrieb Peng Yu:
> Sometimes, I have many windows open on a icewm desktop and I want to
> close them all. But I have windows on other desktops which I don't
> want to close. Is there a simple way to close all the windows on a
> desktop rather closing each window one by one?

Attached is a bash script 'desktop-pids' which prints the PIDs of all 
processes running in the current desktop. I hacked it in rather quickly 
and without much testing, so there is no guarantee for anything. The command

    kill $(desktop-pids)

should do what you want. You could assign it to an icon in the task bar. 
I'm going to write a more generic version of this script and put it on 
my homepage the next days.

Hope it helps,
Bernd

-- 
Bernd Eggink
http://sudrala.de

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.