maximizing

Please post all general support questions for LXDE here.
Locked
ybohan
Posts: 4
Joined: Fri Oct 03, 2014 1:31 pm

maximizing

Post by ybohan »

Hello,

I have LXterminal installed in a RaspberryPi, and i want to make it open always maximized.

Do you have any suggestion?

THank you for your help,
ybohan
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: maximizing

Post by drooly »

you can adjust this in ~/.config/openbox/rc.xml (*), <applications> section.
please check the openbox wiki for documentation.
you might also find something useful here: http://lxlinux.com/

(*) on LXDE, the actual file might be slightly different, like ~/.config/openbox/lxde-rc.xml.
on lubuntu, it might again be different. but definitely under ~/.config/...
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: maximizing

Post by seppalta »

To be more detailed regarding drooly's advice, put the following in the applications section (probably located near the bottom) of rc.xml:

Code: Select all

<application name="lxterminal">
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <skip_taskbar>yes</skip_taskbar>
      <fullscreen>no</fullscreen>
      <maximized>yes</maximized>
    </application>
Now (after openbox is restarted), in whatever menus the command to launch lxterminal is lxterminal, it will launch covering the full window. If the command is something else, for example, x-terminal-emulator, it will launch the default size unless you put a similar entry in rc.xml for that command. It is a nuissance that the full window terminal does not have the usual "min-max-close" bar, so to close the window you have to type "exit" and press "enter" or go to "file>quit".

The command to make the terminal open in size wxh is

Code: Select all

lxterminal --geometry=wxh
where w (width) and h (height) are numbers. I do not know off hand what are the units for w (width) and h (height). You will have to experiment with a few numbers to find your size. The scale for h is much bigger than the one for w. Use this for "application name" in the above code and the command in the menus.
ybohan
Posts: 4
Joined: Fri Oct 03, 2014 1:31 pm

Re: maximizing

Post by ybohan »

Hello,

i tried this code on my RaspberryPi but it didn't worked. I don't think that openbox is on my services.
The folder exists though.

What should i do

Regards
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: maximizing

Post by drooly »

so what exactly are you running on your raspberry pi?
lxde means openbox, afaik.

how exactly did you try and how exactly didn't it work?
ybohan
Posts: 4
Joined: Fri Oct 03, 2014 1:31 pm

Re: maximizing

Post by ybohan »

Sorry, i am new to raspberry. I found it although. I had to write it in a different position in the xml file, under all the other applications.
Now it works fine. Also i did an openbox --reconfigure

Thanks for the help guys
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: maximizing

Post by drooly »

sorry, what?
as far as i know the raspberry pi is a piece of hardware, not a distro?
ybohan
Posts: 4
Joined: Fri Oct 03, 2014 1:31 pm

Re: maximizing

Post by ybohan »

I meant raspbian- raspberry pi os
flaneur
Posts: 4
Joined: Mon Nov 17, 2014 1:25 am

Re: maximizing

Post by flaneur »

seppalta wrote:... It is a nuissance that the full window terminal does not have the usual "min-max-close" bar, so to close the window you have to type "exit" and press "enter" or go to "file>quit".
Can't we also use alt+spacebar, c (for close)?
seppalta wrote:The command to make the terminal open in size wxh is

Code: Select all

lxterminal --geometry=wxh
where w (width) and h (height) are numbers. I do not know off hand what are the units for w (width) and h (height). You will have to experiment with a few numbers to find your size. The scale for h is much bigger than the one for w. Use this for "application name" in the above code and the command in the menus.
In the case of lxterminal geometry, w = characters and h = lines.
Locked