Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Stardict uses a tray icon , also allows multiple instance of itself , but sadly , i don't use a panel , so no notification area available.

But when I hit on close , it minimized to tray , is there a way to find its "Window" ? if the WId was found , activate this window by sending some X message ? I'm not sure if it's possible. (for hidden windows)

Thanks , and please provide a simple bash script

share|improve this question
    
That's a good question - I have no idea where applications that minimize to tray go to if there is no tray running. There are independent applications that provide a system tray without a full panel. I started running stalonetray recently out of a similar need. –  jw013 Jun 10 '12 at 3:31
    
It's Window Manager dependent — by definition. –  poige Jun 10 '12 at 11:15
add comment

1 Answer

up vote 2 down vote accepted

With wmctrl:

wmctrl -a Stardict

With xdotool:

xdotool windowactivate $(xdotool search --class Stardict)

I used Stardict for the window class, check that this is right with xprop (run xprop in a terminal then click on a non-iconified Stardict window and check the WM_CLASS line).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.