You are not logged in.

#1 2007-08-11 19:46:24

derivator
Member
From: Czech Republic
Registered: 2007-08-11
Posts: 5

Openbox default window size

Hi people,

i've a "user" question concerning openbox.
My problem is simple: I would like to assign default window size to starting applications (e.g. when I start xterm, i would like it to have 800x600px).
I have found some options for setting default window position in the config file (rc.xml), but only for position...... I need to change _size_ of the window.

Does anybody know, how to do it?
Thanx for any constructive answers smile

Offline

#2 2007-08-11 20:29:42

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: Openbox default window size

You can set this for all window managers in ~/.Xdefaults:

# ~/.Xdefaults
XTerm*geometry: 90x28

xterm, like most terminal programs, measures geometry in columns and rows rather than pixels.

Offline

#3 2007-08-11 20:39:16

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Openbox default window size

How can I make openbox show the window size while resize it?


Use the Source, Luke!

Offline

#4 2007-08-11 21:36:18

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Openbox default window size

I believe you can modify this section in ~/.config/openbox/rc.xml:

<resize>
    <drawContents>yes</drawContents>
    <popupShow>Nonpixel</popupShow>
    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    <popupPosition>Center</popupPosition>
    <!-- 'Center' or 'Top' -->
  </resize>

Changing the popupShow value to Always will show a pop up for all applications, while Nonpixel only shows the popup for legacy apps that are based on columns & rows, such as xterm, urxvt, etc.


thayer williams ~ cinderwick.ca

Offline

#5 2007-08-11 21:51:53

derivator
Member
From: Czech Republic
Registered: 2007-08-11
Posts: 5

Re: Openbox default window size

heureka!:o
i must have be blind. i didn't realize i could use resources..... thank you very much smile

skymt wrote:

You can set this for all window managers in ~/.Xdefaults:

# ~/.Xdefaults
XTerm*geometry: 90x28

xterm, like most terminal programs, measures geometry in columns and rows rather than pixels.

Offline

#6 2007-08-11 22:59:21

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Openbox default window size

When it comes to the geometry for pidgin, what do I define for the contact list window and the conversation window?


Use the Source, Luke!

Offline

#7 2007-08-13 01:01:42

derivator
Member
From: Czech Republic
Registered: 2007-08-11
Posts: 5

Re: Openbox default window size

I've searched some phorums and openbox documentation and found nothing smile
However, some guy recommended me to use devil's pie - window matching utility. So I'm going to test it tomorrow. I'm too tired for doing experiments today sad


Roberth wrote:

When it comes to the geometry for pidgin, what do I define for the contact list window and the conversation window?

Offline

#8 2007-08-14 19:18:47

gejr
Member
Registered: 2007-05-23
Posts: 92

Re: Openbox default window size

You could start urxvt with "urxvt -g 60x10+50+50"
the format is: (width, height in lines, gap X, gap Y)

Offline

Board footer

Powered by FluxBB