How to monitor applications being open or launch in linux/tcl/python?
I am trying to build a panel application, alike avant window navigator or ubuntu unity. My question is once I build the panel with the predifined applications, how I can add items to the panel when applications are open or launch? Here is my source code in tcl: package require Tk set items {xterm gvim firefox} wm withdraw . toplevel .panel wm attributes .panel -topmost 1 ; # on top bind .panel <Escape> {exit} wm geometry .panel +0+0 wm overrideredirect .panel yes ; # remove window decorations set counter 0 foreach item $items { incr counter set separator " " label .panel.$counter -text "$item