in reply to minimize window to systray

Look at tkruler, which has a hack to use a systray together with Perl/Tk.