<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 12pt; font-family: Tahoma,Arial,Helvetica,sans-serif'>
<p>I have used an approach that I developed a few years ago to recognize and place new windows as they opened, using wmctrl and xdotool. My approach works reasonably well, but when I discovered Openbox a couple of weeks ago, I was excited to think that I could eliminate my approach and just use Openbox. So far, the programs that I use the  most have now been adapted to use Openbox instead of my approach, and I am happy about that. For applications, such as Firefox, that do not provide enough information to Openbox, I can either avoid using those programs, or continue to use my approach for those applications. In summary, I am very pleased with Openbox.</p>
<p>On 2018-12-03 18:00, openbox-request@icculus.org wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Send openbox mailing list submissions to<br />     <a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br /> <br /> To subscribe or unsubscribe via the World Wide Web, visit<br />     <a href="http://icculus.org/mailman/listinfo/openbox" target="_blank" rel="noopener noreferrer">http://icculus.org/mailman/listinfo/openbox</a><br /> or, via email, send a message with subject or body 'help' to<br />     <a href="mailto:openbox-request@icculus.org">openbox-request@icculus.org</a><br /> <br /> You can reach the person managing the list at<br />     <a href="mailto:openbox-owner@icculus.org">openbox-owner@icculus.org</a><br /> <br /> When replying, please edit your Subject line so it is more specific<br /> than "Re: Contents of openbox digest..."<br /> <br /> <br /> Today's Topics:<br /> <br />    1. Re: openbox Digest, Vol 111, Issue 9 (Jim Rees)<br />    2. Re: openbox Digest, Vol 111, Issue 9 (Anthony Thyssen)<br /> <br /> <br /> ----------------------------------------------------------------------<br /> <br /> Message: 1<br /> Date: Sun, 2 Dec 2018 17:49:51 -0500<br /> From: Jim Rees <<a href="mailto:jim@rees.org">jim@rees.org</a>><br /> To: openbox mailing list <<a href="mailto:openbox@icculus.org">openbox@icculus.org</a>><br /> Subject: Re: [openbox] openbox Digest, Vol 111, Issue 9<br /> Message-ID: <<a href="mailto:20181202224951.GA29200@rees.org">20181202224951.GA29200@rees.org</a>><br /> Content-Type: text/plain; charset=us-ascii<br /> <br /> Gary wrote:<br /> <br />   All of the _OB_APP_ items for a Firefox window are the same for all<br />   Firefox windows, making it impossible to have Openbox configure each<br />   Firefox window uniquely. However, _NET_WM_VISIBLE_NAME is unique for<br />   each Firefox window that is opening a specific webpage, in that it<br />   displays the text from the window's title bar.<br /> <br /> That's one of the more annoying misfeatures of Firefox. There are various<br /> add-ons that claim to fix this, but I haven't tried them. You could try<br /> "Custom Titlebar Text".<br /> <br /> <br /> ------------------------------<br /> <br /> Message: 2<br /> Date: Mon, 3 Dec 2018 09:26:48 +1000<br /> From: Anthony Thyssen <<a href="mailto:anthony.thyssen@gmail.com">anthony.thyssen@gmail.com</a>><br /> To: <a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br /> Subject: Re: [openbox] openbox Digest, Vol 111, Issue 9<br /> Message-ID:<br />     <<a href="mailto:CAHtp78EPzp-2JiVkFE7w7kwnvDX_yKj=Po57PQbsD+LO5rNr0w@mail.gmail.com">CAHtp78EPzp-2JiVkFE7w7kwnvDX_yKj=Po57PQbsD+LO5rNr0w@mail.gmail.com</a>><br /> Content-Type: text/plain; charset="utf-8"<br /> <br /> You can discover and figure out the different windows without needing<br /> openbox to do it.<br /> This is especially relevant to the web browsers, which as Gary pointed out<br /> do not differentiate themselves on start up.<br /> <br /> How I handle such applications is to use a start up script  (in my case<br /> part of the ".xinitrc" but can be any client start up script, or direct<br /> command call).<br /> <br /> For this I have a 'wait for window' script  "xwin_find"<br />    <a href="http://www.ict.griffith.edu.au/anthony/software/#xwin_find" target="_blank" rel="noopener noreferrer">http://www.ict.griffith.edu.au/anthony/software/#xwin_find</a><br /> This essentially a loop that looks for a specific window using "xwininfo"<br /> <br /> With it I can then do things like...<br /> <br />   google-chrome &<br />   if id=`xwin_find 60 "Anthony.* - Google Chrome"`; then<br />     echo "Chrome Window Found (id=$id)"<br />     sleep 1  # pause a moment<br />     xwit -iconify -id $id<br />   else<br />     echo "ERROR: Chrome Window NOT FOUND\!"<br />   fi<br /> <br /> This will wait (up to a full minute) for the specified window to appear (<br /> and load the appropriate startup page to identify it), then minimize<br /> (iconify) the window,  but you can also resize, position, or move to a<br /> specific window manager desktop, using the appropriate tools.<br /> <br /> It works with chrome, firefox, or other tools too.<br /> <br /> Alternatively, if you don't mind not having a timeout, you can use "wmctrl"<br /> <br />    while :; do<br />      wmctrl -l | grep -q "$string" || continue<br />      : do what you need<br />      break<br />    done<br /> <br /> Or even "xdotool" using its "search -sync" function<br /> <br />    firefox &<br />      xdotool search --sync --onlyvisible --class Firefox \<br />              windowsize %@ 900 900 windowminimize %@<br /> <br /> I hope this helps.<br /> <br /> Anthony<br /> <br /> <br /> On Mon, Dec 3, 2018 at 2:10 AM Gary <<a href="mailto:gary@oax.net">gary@oax.net</a>> wrote:<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">All of the _OB_APP_ items for a Firefox window are the same for all<br /> Firefox windows, making it impossible to have Openbox configure each<br /> Firefox window uniquely. However, _NET_WM_VISIBLE_NAME is unique for each<br /> Firefox window that is opening a specific webpage, in that it displays the<br /> text from the window's title bar. If I understand correctly, that<br /> information was not available to Openbox when the Firefox window opened.<br /> Chromium does display unique information for each window, in the form of<br /> the path to the profile specified on the Chromium command line, so it looks<br /> like I'll have to keep using Chromium and avoid using Firefox.<br /> <br /> <br /> </blockquote>
-------------- next part --------------<br /> An HTML attachment was scrubbed...<br /> URL: <<a href="http://icculus.org/pipermail/openbox/attachments/20181203/c0dfe082/attachment-0001.html" target="_blank" rel="noopener noreferrer">http://icculus.org/pipermail/openbox/attachments/20181203/c0dfe082/attachment-0001.html</a>><br /> <br /> ------------------------------<br /> <br /> Subject: Digest Footer<br /> <br /> _______________________________________________<br /> openbox mailing list<br /> <a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br /> <a href="http://icculus.org/mailman/listinfo/openbox" target="_blank" rel="noopener noreferrer">http://icculus.org/mailman/listinfo/openbox</a><br /> <br /> ------------------------------<br /> <br /> End of openbox Digest, Vol 112, Issue 2<br /> ***************************************</div>
</blockquote>
</body></html>