SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-08-15 02:06:33

poldebi
New Member
Registered: 2012-08-12
Posts: 6

Openbox new windows centered

Hello #!ers,

any new windows are appearing somewhere on the screen. I want to force them to open centered. Center new windows is checked in the Openbox GUI config tool.

btw: I'm using a second extended monitor.

Thanks in advance. :)

Offline

Be excellent to each other!

#2 2012-08-16 01:14:10

poldebi
New Member
Registered: 2012-08-12
Posts: 6

Re: Openbox new windows centered

Hello again,

another thing is, that iceweasel isn't focused using the keyboard shortcut.

<focusNew>yes</focusNew>

as well as

<startupnotify><enabled>true</enabled><name>Web Browser</name></startupnotify>

are set in the rc.xml.

Due to the certain program maybe it is a iceweasel related bug (or feature? ^^)!?

Appreciate any kind of help. smile

Last edited by poldebi (2012-08-16 01:18:26)

Offline

#3 2012-08-19 00:18:23

smoki
#! Junkie
Registered: 2012-02-09
Posts: 253

Re: Openbox new windows centered

Any new window is placed with: smart (random) or under mouse. Default is top left, center new window in smart mode means first is centered and any new depends of free space available - if it is not available random goes.

To force all windows goes centered any new, you can use per app setings and make something like this and put it in your the end of your rc.xml (between <applications></applications> see example there smile):

<application class="*" type="normal">
      <position force="yes">
        <x>center</x>
        <y>center</y>
      </position>
    </application>

Or use obapps gui utility for that purpose.

Last edited by smoki (2012-08-19 00:28:15)

Offline

#4 2012-08-19 15:29:39

poldebi
New Member
Registered: 2012-08-12
Posts: 6

Re: Openbox new windows centered

smoki wrote:

Any new window is placed with: smart (random) or under mouse. Default is top left, center new window in smart mode means first is centered and any new depends of free space available - if it is not available random goes.

That is nice to know. Thanks for teaching me there. smile

smoki wrote:

To force all windows goes centered any new, you can use per app setings and make something like this and put it in your the end of your rc.xml

It seems to work how it supposed to be. Due to the fact it forces all windows to be centered, my notifications are also centered.

How should the code look like to add an exception for the notification daemon (on waldorf)?

Thanks in advance! smile

Last edited by poldebi (2012-08-19 15:52:08)

Offline

#5 2012-08-19 18:21:26

smoki
#! Junkie
Registered: 2012-02-09
Posts: 253

Re: Openbox new windows centered

<application class="Xfce4-notifyd" name="xfce4-notifyd" type="normal"><position force="no"><x>1600</x><y>50</y><monitor>default</monitor></position></application>

Something like that for top right, x and y postion depends on your screen resolution:). Or fairly better - non resolution  dependant:

<application class="Xfce4-notifyd" name="xfce4-notifyd" type="normal"><position force="no"><x>-50</x><y>50</y><monitor>default</monitor></position></application>

Last edited by smoki (2012-08-19 18:34:47)

Offline

#6 2012-08-19 18:45:06

poldebi
New Member
Registered: 2012-08-12
Posts: 6

Re: Openbox new windows centered

You're awesome! Works like a charm. smile

Now I have to find out how i can handle the Skype contact window, so it is in the bottom right corner.

respects

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo