Re: [fbpanel] hide on click
Brought to you by:
aanatoly
From: Sy A. <sy...@gm...> - 2007-08-17 11:04:02
|
On 8/17/07, Daniel Greenberg <da...@ms...> wrote: > The next step is to add two launchbar plugins to the ~/.fbpanel/default > file. I would have made some way to make your script learn the position of fbpanel and act accordingly. If it was in the default position, then move it. If it was already moved, then restore it. There are a few ways to do it. I have some notes around here somewhere: http://jrandomhacker.info/X Probably the best way is to just have your script write a file or a variable when it activates. It checks for that file or variable and does the right thing. So it would end up working like a toggle, and not act as separate on/off scripts. > All this works pretty well, but there is a complication that should be > mentioned: On startup, fbpanel assigns the title "panel" to its window. Here is your solution. =) wmctrl -F -r "panel" (other switches) quote: [-F] Modifies the behavior of the window title matching algorithm. It will match only the full window title instead of a substring, when this option is used. Furthermore it makes the matching case sensitive. |