Hey
I think I've got a nice solution for the problem -
If nothing is changed, all files in the folder set by the --folder
(which is ~/.config/devilspie2/ by default) will be read as scripts to
be called on window open - BUT if theres an devilspie2.lua in that
folder, this will be read and searched for some variables, for example:
window_close_files = {
"close1.lua",
"close2.lua"
}
When going through the list of files in the folder, if the filename is
in the window_close_files variable, it will be called on window
closing, and if not, on window opening. (other wnck signals can also be
added in this manner).
If you already have a file that is called devilspie2.lua that is used
for window_open scripts, then this won't be a problem either, since it
will just ignore the window_close_files variable, if you don't use a
variable of that name in your scripts. (The chances are pretty slim.)
I think this will solve the problems I have seen with the previous
methods I have came up with. However, a way to communicate between the
scripts might be needed, but I don't believe that will be a problem.
Any thoughts, protests, comments, happy shouts? ;)
best regards
-- Andreas Rönnquist
devil...@gusnan.se
--
_
( ) ascii ribbon campaign - against html e-mail
X
www.asciiribbon.org - against proprietary attachments
/ \