I want all my windows to open centered on the screen. How do I do this? I am new to mabox.
Thanks!!!
Randy🙂
I want all my windows to open centered on the screen. How do I do this? I am new to mabox.
Thanks!!!
Randy🙂
Did you read/search Openbox documentation?
Everything you need to start windows centered is there → Help:Applications - Openbox
and in rc.xml file provided as an example. Also ~/.config/openbox/rc.xml
file provided by Mabox have a lot of information about that.
You need something like this:
<applications>
<application class="*">
<focus>yes</focus>
<position force="no">
<x>center</x>
<y>200</y>
<monitor>1</monitor>
</position>
</application>
</applications>
Thanks napcok!!!
I should have looked at the openbox documentation but I thought that it might be something unique to mabox. I love mabox!!! Thanks for your reply!!!
I use configuration cited above, and today morning it starts my tint2 panel positioned 200px from top.
To avoid that I changed configuration to:
<applications>
<application class="*" type="normal">
<focus>yes</focus>
<position force="no">
<x>center</x>
<y>center</y>
<monitor>1</monitor>
</position>
</application>
</applications>
Note type=“normal” - this affects most of applications but no tint2 which have type=“dock”.
To examine type of any window you can run:
obxprop | grep "^_OB_APP"
then click on window/app.