[openbox] openbox Digest, Vol 111, Issue 9
anthony.thyssen at gmail.com
Sun Dec 2 18:26:48 EST 2018
You can discover and figure out the different windows without needing
openbox to do it.
This is especially relevant to the web browsers, which as Gary pointed out
do not differentiate themselves on start up.
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
For this I have a 'wait for window' script "xwin_find"
This essentially a loop that looks for a specific window using "xwininfo"
With it I can then do things like...
if id=`xwin_find 60 "Anthony.* - Google Chrome"`; then
echo "Chrome Window Found (id=$id)"
sleep 1 # pause a moment
xwit -iconify -id $id
echo "ERROR: Chrome Window NOT FOUND\!"
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.
It works with chrome, firefox, or other tools too.
Alternatively, if you don't mind not having a timeout, you can use "wmctrl"
while :; do
wmctrl -l | grep -q "$string" || continue
: do what you need
Or even "xdotool" using its "search -sync" function
xdotool search --sync --onlyvisible --class Firefox \
windowsize %@ 900 900 windowminimize %@
I hope this helps.
On Mon, Dec 3, 2018 at 2:10 AM Gary <gary at oax.net> wrote:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the openbox