Set Terminal window size (and position)
Solution 1:
I succeeded in increasing the window size for lxterminal by editing
/usr/share/applications/lxterminal.desktop
changing the Exec
line to
Exec=lxterminal --geometry=81x59
Solution 2:
This can be done in two different ways, depending on whether access is from the keyboard or via the menu.
From the keyboard:
One has to edit ~/.config/openbox/lubuntu-rc.xml
.
note: it's always a good thing to save a copy of
lubuntu-rc.xml
first (lubuntu-rc.xml.old)
Use a text editor to open ~/.config/openbox/lubuntu-rc.xml
. This file has several sections; in the section devoted to keybindings, add this:
<keybind key="C-A-T">
<action name="Execute">
<command>lxterminal --geometry=140x40</command>
</action>
</keybind>
Save the file and exit the text editor. Open a terminal and run openbox --reconfigure
to refresh lubuntu-rc.xml. After this, any time you access lxterminal from the keyboard using Ctrl+Alt+T, lxterminal will open with a size of 140 columns by 40 rows.
From the menu:
This requires editing of a .desktop
file. By default, .desktop files are located in /usr/share/applications
and could be edited there (using sudo
).
However, it may be preferable to make a copy of the .desktop file in ~/.local/share/applications
because editing this file only affects the specific user (and doesn't need sudo
).
So, copy /usr/share/applications/lxterminal.desktop
to ~/.local/share/applications
. Then open the copied file with a text editor. Search for a line that starts with Exec=
and change Exec=lxterminal
to Exec=lxterminal --geometry=140x40
. Save the file. Done.