View Full Version : [all variants] Devilspie wmctrl question

January 8th, 2009, 06:03 AM
I'm trying to figure out a way to say, make a window automatically die when it loses focus. In other words, when I open nautilus and click on a file in it to open, say a movie or text file, and nautilus subsequently loses focus as the newly started app gains focus, I'd like nautilus to just automatically close. Lazy, I know but, hey.

I thought maybe devilspie or wmctrl might have the ability to detect if a window has focus or not and initiate an action based on that but nothing in the documentation of either one or any Google or forum searches turns anything up.

Thanks for any help and if I figure it out, I'll update this thread.

January 15th, 2009, 01:16 AM
I'm also interested in this - I'm trying to replicate yakuake-like behavior for gnome-terminal, and I need to be able to detect whether it's focused or not.