[SOLVED] Re: Openbox and multiple screens.
Hello Davidson, thanks for the reply.
From: davidson <davidson@freevolt.org>
Date: Mon, 18 Apr 2022 23:07:28 +0000 (UTC)
> $ man 7 X
> ...
> ... -geometry WIDTHxHEIGHT+XOFF+YOFF ...
This line in ~/.config/openbox/autostart starts firefox without recognition of geometry.
(sleep 3s && firefox -geometry 800x600+1000+20 ) &
https://linux.die.net/man/1/firefox doesn't mention geometry but
suggested this.
(sleep 3s && xterm -e firefox -height 480 -width 640 ) &
Good, that works.
Google and a bit of luck led to this page
http://openbox.org/wiki/Help:Configuration#Applications
and the link to this.
http://openbox.org/wiki/Help:Applications
This command with a click on the target window is critical to
identification of a window.
obxprop | grep "^_OB_APP"
This stanza puts the firefox window at the upper left of the right
screen.
<application class="Firefox-esr">
<position> <x>1300</x> <y>0</y> </position>
</application>
A window with these properties
_OB_APP_GROUP_CLASS(UTF8_STRING) =
_OB_APP_GROUP_NAME(UTF8_STRING) =
_OB_APP_CLASS(UTF8_STRING) =
_OB_APP_NAME(UTF8_STRING) =
_OB_APP_ROLE(UTF8_STRING) =
stumped me until recognizing that this stanza provides a default
(matches any window) case.
<application class="*">
<position> <x>10</x> <y>10</y> </position>
</application>
For now this is the complete applications stanza in
/home/me/.config/openbox/rc.xml.
<applications>
# Default window location at the upper left of display coordinates.
<application class="*">
<position> <x>10</x> <y>10</y> </position>
</application>
<application class="Firefox-esr">
<position> <x>1300</x> <y>0</y> </position>
</application>
</applications>
There might be a way to include window height and width in rc.xml but
I'm content to leave them in /home/me/.config/openbox/autostart for
now.
From: davidson <davidson@freevolt.org>
Date: Mon, 18 Apr 2022 23:07:28 +0000 (UTC)
> As for which screen, see the section titled "DISPLAY NAMES" in the
> same manual.
Here display :0 spans the two screens. One display coordinate system
can be used directly as above.
Thanks again, ... P.
--
mobile: +1 778 951 5147
VoIP: +1 604 670 0140
48.7693 N 123.3053 W
Reply to: