<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">You can discover and figure out the different windows without needing openbox to do it.<div>This is especially relevant to the web browsers, which as Gary pointed out do not differentiate themselves on start up.</div><div><br></div><div>How I handle such applications is to use a start up script  (in my case part of the ".xinitrc" but can be any client start up script, or direct command call).</div><div><br></div><div>For this I have a 'wait for window' script  "xwin_find"</div><div>   <a href="http://www.ict.griffith.edu.au/anthony/software/#xwin_find">http://www.ict.griffith.edu.au/anthony/software/#xwin_find</a><br><div dir="ltr">This essentially a loop that looks for a specific window using "xwininfo"</div><div dir="ltr"><br></div><div dir="ltr">With it I can then do things like...</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><font face="monospace, monospace">  google-chrome &</font></div><div dir="ltr"><font face="monospace, monospace">  if id=`xwin_find 60 "Anthony.* - Google Chrome"`; then</font></div><div dir="ltr"><font face="monospace, monospace">    echo "Chrome Window Found (id=$id)"</font></div><div dir="ltr"><font face="monospace, monospace">    sleep 1  # pause a moment</font></div><div dir="ltr"><font face="monospace, monospace">    xwit -iconify -id $id</font></div><div dir="ltr"><font face="monospace, monospace">  else</font></div><div dir="ltr"><font face="monospace, monospace">    echo "ERROR: Chrome Window NOT FOUND\!"</font></div><div dir="ltr"><font face="monospace, monospace">  fi</font></div><div><br></div><div>This will wait (up to a full minute) for the specified window to appear ( and load the appropriate startup page to identify it), then minimize (iconify) the window,  but you can also resize, position, or move to a specific window manager desktop, using the appropriate tools.</div><div><br></div><div>It works with chrome, firefox, or other tools too.</div><div><br></div><div>Alternatively, if you don't mind not having a timeout, you can use "wmctrl"</div><div><br></div><div><div><font face="monospace, monospace">   while :; do</font></div><div><font face="monospace, monospace">     wmctrl -l | grep -q "$string" || continue</font></div><div><font face="monospace, monospace">     : do what you need<br>     break</font></div><div><font face="monospace, monospace">   done</font></div></div><div><br></div></div><div>Or even "xdotool" using its "search -sync" function</div><div><br></div><div><div><font face="monospace, monospace">   firefox &</font></div><div><font face="monospace, monospace">     xdotool search --sync --onlyvisible --class Firefox \</font></div><div><font face="monospace, monospace">             windowsize %@ 900 900 windowminimize %@</font></div><div><br></div></div><div>I hope this helps.</div><div><br></div><div>Anthony</div><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 2:10 AM Gary <<a href="mailto:gary@oax.net" target="_blank">gary@oax.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:12pt;font-family:Tahoma,Arial,Helvetica,sans-serif">
<p>All of the _OB_APP_ items for a Firefox window are the same for all Firefox windows, making it impossible to have Openbox configure each Firefox window uniquely. However, _NET_WM_VISIBLE_NAME is unique for each Firefox window that is opening a specific webpage, in that it displays the text from the window's title bar. If I understand correctly, that information was not available to Openbox when the Firefox window opened. Chromium does display unique information for each window, in the form of the path to the profile specified on the Chromium command line, so it looks like I'll have to keep using Chromium and avoid using Firefox.</p>
<p><br></p>
</div></blockquote></div></div></div></div></div></div></div></div></div>