You are not logged in.

#1 2016-03-06 17:15:49

hilltopyodeler
Member
Registered: 2016-03-06
Posts: 14

[SOLVED] Custom Window Size Not Working (Geometry)

In Openbox, I like to have three menu-launchers for Terminator, depending on my needs.  One version is my "large" version, and it opens up at a specified size (1000x700 for instance).  The other version launches in full screen mode, and the third version is just the default size.  The full screen version opens fine, but the custom size does not work in RC2 - but it works fine in BL RC1.  Here is my code for launching the custom size for Terminator:

<item label="Terminator [ large ]">
	<action name="Execute">
		<command>
			terminator --geometry 1000x700
		</command>
	</action>
</item>

So "terminator --geometry 1000x700" is no longer launching at the specified size.  I've tried it using various sizes and no luck.  It does open slightly larger than the default size (barely larger...), but does not open at the specified dimensions.

Does anyone have any ideas for a solution?  This works fine in BL RC1 (and in every previous Linux distro I've used for the last 5 or so years).

Incidentally, I use "terminator -m -b" to launch Terminator at full-screen size with no scroll bar, and this works fine in RC2.

Thank you!

Last edited by hilltopyodeler (2016-03-06 18:36:33)

Offline

#2 2016-03-06 17:26:42

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [SOLVED] Custom Window Size Not Working (Geometry)

See

man terminator
       --geometry=GEOMETRY
              Specifies  the  preferred size and position of Terminator's window; see
              X(7).

Notice the = sign.

Offline

#3 2016-03-06 17:44:07

hilltopyodeler
Member
Registered: 2016-03-06
Posts: 14

Re: [SOLVED] Custom Window Size Not Working (Geometry)

Thanks xaos52. Unfortunately --geometry=GEOMETRY is not working on RC2.  Also, I believe that I've used --geometry in the past to specify window size of other applications - I didn't think that it was bound to Terminator but maybe that's not correct.  I've never used an '=' in the past and it's always worked fine. Incidentally, I have another laptop running RC1 and I tried this both with and without the '=' sign and it worked just fine both ways (on RC1). On RC2, I tried using various sizes (for instance: terminator --geometry=1000x700) without success on the new RC2 build. This seems like a strange thing to break between versions. Any help is appreciated.

Last edited by hilltopyodeler (2016-03-06 18:06:30)

Offline

#4 2016-03-06 18:00:33

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Custom Window Size Not Working (Geometry)

I am also finding this, using a variety of --geometry formats.

Turning off `window geometry hints` in Preferences -> Global doesn't fix it either.


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

#5 2016-03-06 18:08:40

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,073
Website

Re: [SOLVED] Custom Window Size Not Working (Geometry)

hilltopyodeler wrote:

This seems like a strange thing to break between versions

There is no change is the version or behaviour of openbox between rc1 and rc2

I can confirm that "--geometry 1000x700" and "--geometry=1000x700" both work although the sizes are very slightly different, oddly.

I have just added your exact stanza to ~/.config/openbox/menu.xml in my rc2 installation and it works just fine in my system.

Here is my working menu.xml with your entry:
https://gist.github.com/Head-on-a-Stick … 93c4e3cd0b

If you can't figure out the error, post your complete menu.xml

Offline

#6 2016-03-06 18:18:21

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Custom Window Size Not Working (Geometry)

I have also added those lines to my menu.xml, and the window isn't sized as requested. Oddly enough the position is honoured if set:
this opens a default-size window at top left (but not 1300x200!):

terminator --geometry=1300x200+0+0

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

#7 2016-03-06 18:26:33

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,073
Website

Re: [SOLVED] Custom Window Size Not Working (Geometry)

damo wrote:

the window isn't sized as requested

Ooops, I didn't notice that... :8

@OP: Edit the file at ~/.config/terminator/config and change this line:

#      size = 680, 540

That line sets the terminal size, putting a "#" symbol at the start of the line stops this value from being applied.

Offline

#8 2016-03-06 19:58:31

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Custom Window Size Not Working (Geometry)

I think a better way to do it is to set up new layouts with the specific sizes. Otherwise any script calling for a terminal will get the system default small size window, instead of the larger BL terminator window.

[layouts]
  [[large]]
    [[[child1]]]
      type = Terminal
      parent = window0
      profile = default
    [[[window0]]]
      type = Window
      parent = ""
      size = 1000, 700

OP's command could then be

terminator --layout=large

...but I know some folk don't like the bigger windows as default hmm

EDIT: I don't know why RC2 behaved differently from RC1 for the OP - the terminator config is the same, and was last edited in Sept 2015

Last edited by damo (2016-03-06 20:04:54)


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

#9 2016-03-06 20:33:12

hilltopyodeler
Member
Registered: 2016-03-06
Posts: 14

Re: [SOLVED] Custom Window Size Not Working (Geometry)

Thanks damo, you propose a sensible solution - I may try this, mostly just to see it in action. Personally I don't mind that when apps call on Terminator that they open at the default size.  I tend to not want them to open as large as my customized "large/big" sized Terminator window, for various reasons.  However, most of the time when I'm working in Terminator (not in an app that opened Terminator), I like for it to occupy the width of my screen to the left of my Conky output (hence the custom size requirement).  Here's the related segment of code from my menu.xml file:

<menu id="terminator" label="T e r m i n a t o r">
	<item label="Terminal [ big ]">
		<action name="Execute">
			<command>
				terminator --geometry 1050x725+0+0
			</command>
		</action>
	</item>
	<item label="Terminal [ full ]">
		<action name="Execute">
			<command>
				terminator -m -b
			</command>
		</action>
	</item>
	<item label="Terminal [ default ]">
		<action name="Execute">
			<command>
				terminator
			</command>
		</action>
		</item>
</menu>

I'm psyched that this is working now!  Thank you!

Offline

#10 2018-09-23 05:26:31

bunsenyo
New Member
Registered: 2018-09-23
Posts: 3

Re: [SOLVED] Custom Window Size Not Working (Geometry)

Just wanted to share an alternate fix for this [even thought this is marked solved].If you wish to set the the geometry of terminator, for example, in your openbox.xml file or manually launch terminator with a specfic size with gmrun, you can simply delete the the size value in your "$HOME/.config/terminator/config" file. In other words you can modify the size value as follows:
modify this --------------------->    size = "1000, 700"
to look like this  -------------------------------->    size ""

Hope this is helpful!

Last edited by bunsenyo (2018-09-23 05:27:10)

Offline

Board footer

Powered by FluxBB