I'm glad to hear it was of some help to someone. I really don't know Lua. I just threw that script together from what I could find in the devilspie2 manual and some online resources. The sleep idea I got from: http://lua-users.org/wiki/SleepFunction. It notes that Windows doesn't have a sleep function but I believe Linux does. I was hoping the function would call the Linux sleep command via os.execute. I really am not sure if it is actually doing that, but in the end the script seemed to work for me so I left it alone.
I would be interested to hear if just calling the function twice works just as well.
Hi Peter,
I'm glad to hear it was of some help to someone. I really don't know Lua. I just threw that script together from what I could find in the devilspie2 manual and some online resources. The sleep idea I got from: http:// lua-users. org/wiki/ SleepFunction. It notes that Windows doesn't have a sleep function but I believe Linux does. I was hoping the function would call the Linux sleep command via os.execute. I really am not sure if it is actually doing that, but in the end the script seemed to work for me so I left it alone.
I would be interested to hear if just calling the function twice works just as well.
Jay