You are not logged in.
The application window centering is driving me crazy.
When I open an application such as terminal, filemanager, geany, or whatver...
Sometimes its on the top left of the screen, sometimes the bottom right, sometimes is somewhere in the middle of the screen, it makes no sense.
How to make applications open in the middle of the screen?
I think it's an openbox issue... I tried the fix in post #6 here...
https://bbs.archlinux.org/viewtopic.php?id=165625
But upon reboot it made my tint2 bar in the center of the screen, which is obviously no good.
Last edited by 12oclocker (2016-01-19 02:01:44)
Offline
These are the available options in Openbox...
http://openbox.org/wiki/Help:Configuration#Placement
In BL, the center option is set by default to "yes" in rc.xml, but openbox doesn't have an option to open every window center screen. Other window managers do, xfwm4, for instance, but if you switch it for openbox you'll lose the openbox right-click menu. There are other ways to get a root menu, though.
I don't care what you do at home. Would you care to explain?
Offline
Other window managers do, xfwm4, for instance, but if you switch it for openbox you'll lose the openbox right-click menu. There are other ways to get a root menu, though.
Even if you get a menu, the pipemenus won't work without openbox.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
^Yes, without Openbox our bl-* stuff is crippled.
I don't care what you do at home. Would you care to explain?
Offline
But upon reboot it made my tint2 bar in the center of the screen, which is obviously no good.
Try something like
<application name="tint2">
<position force="no">
<x>center</x>
<y>-0</y>
</position>
</application>
(Sorry, I don't have time to actually test it right now.)
Corrected and confirmed on BunsenLabs.
Last edited by nore (2016-01-19 13:55:57)
Offline
for terminal programs you could use geometry definitions like
x-terminal-emulator -g +0+0 -e mc
# or
x-terminal-emulator -title "Task Manager" -g -0+0 -e htop
if what nore ^ wrote doesn't work you could always call an xdotool script.
kinda hacky feeling but works well
you can also use xwininfo, xprop for finding window information.
Offline
The easiest workaround would be to install and configure devilspie to center all windows.
I don't care what you do at home. Would you care to explain?
Offline
It is a much-disliked Openbox "feature" which was introduced in 3.5.something. I set my config to start windows at the mouse position, or force a placement in the <application> section of rc.xml.
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
These are the available options in Openbox...
http://openbox.org/wiki/Help:Configuration#Placement
this.
and it's "center of available space", not center of screen.
the center=yes option was absent in openbox for a while, but has been re-introduced.
i'm not 100% sure whether debian's version has reintroduced it or not.
in any case, if you set
<center>no</center>
it will place new windows in the top left of available space (unless you choose undermouse, which i always found to be insanely annoying), and that's all there is to it.
i know, because i recently had a similar gripe with it.
Offline
<application class="tint2">
does not work,
<application name="tint2">
works on BunsenLabs. I edited my last post.
<application name="*">
<position force="yes">
<x>center</x>
<y>center</y>
</position>
</application>
<application name="tint2">
<position force="no">
<x>center</x>
<y>-0</y>
</position>
</application>
Last edited by nore (2016-01-19 14:00:54)
Offline
thanks everyone, I ended up going with nore's method...
"Preferences->OpenBox->Edit rc.xml"
//scroll to bottom and add the following Before "</applications>"...
//use "<y>-0</y>" to put your tint2 on the bottom, or "<y>0</y>" to put it on the top
<!-- BEGIN MY MOD -->
<application name="*">
<position force="yes">
<x>center</x>
<y>center</y>
</position>
</application>
<application name="tint2">
<position force="no">
<x>center</x>
<y>-0</y>
</position>
</application>
<!-- END MY MOD -->
Offline
...
the center=yes option was absent in openbox for a while, but has been re-introduced.
i'm not 100% sure whether debian's version has reintroduced it or not.
....
The feature was reintroduced in Openbox 3.6, which is now in stretch/sid
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline