xclose v0.1
XClose is a simple command line tool for listing all the top level windows you have within your X session, and allows you to close windows by regular expression.
Motivation
This is inspired by several shareware/freeware applications which exist under the Microsoft Windows platform for automatically closing windows which contain the word 'Popup' or 'Banner' in their title.
This application performs a similar function - allowing you to close all open top-level windows which match a given regular expression.
(Personally I don't use it for closing popups; as I use the Mozilla webbrowser which has built in support for filtering them out for me ;)
Building
This application only requires the xlib header files and libraries.
It should build under any environment under which X itself is supported.
Sample Usage
To kill all running instances of Emacs, (crul I know), run this:
skx@heaven:~$ xclose emacs
or for the paranoid:
skx@heaven:~$ xclose ^emacs@
For a trial run you may use the '--list' argument along with a regular expression. This will display the windows which match, for example:
skx@heaven:~$ xclose --list skx
skx@heaven: /home/skx
skx@heaven: /home/skx
skx@heaven: /home/skx/xclose-1.0
Comments
Comments or feedback may be sent to the author at the address listed at the bottom of this file, where they will be greatfully received.
Steve
