fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.35k stars 212 forks source link

configuring a rule for FIJI (ImageJ) program doesn't work #202

Closed javesar closed 5 years ago

javesar commented 5 years ago

Hello,

I installed the program a few days ago and i'm really enjoying it!

One of the things I want to do is exclude windows from a certain program from being managed and tiled. So I want windows from that program to be floating.

My config line (copied from #i) is:

Config_rule=SunAwtFrame;(Fiji Is Just) ImageJ;;1;1;1;1;0;0;

However unfortunately, that doesn't work. The windows of the program keep getting tiled. I don't think it's something I'm doing wrong because I tried the same methodology for another app (Spotify) and it worked fine. I'm not very knowledgeable in coding or Comp Sci but maybe this FIJI program is has a certain structure or environment that bug.n is not compatible with?

The program is called FIJI (Fiji Is Just Image J). https://imagej.net/Fiji

Any help would be greatly appreciated.

Thanks,

joten commented 5 years ago

bug.n uses regular expressions in the first two fields of a Config_rule, therefor the "()" in the title have to be escaped. The following should work: Config_rule=SunAwtFrame;\(Fiji Is Just\) ImageJ;;1;1;1;1;0;0; or Config_rule=SunAwtFrame;.?Fiji Is Just.? ImageJ;;1;1;1;1;0;0;

javesar commented 5 years ago

Thank you @joten it works!! Would have taken me a while or infinity to figure that out haha. Good to know for any additional rules that I make