These are 2 ways to set the LXTerminal at a fixed size when opening the LXTerminal. These hacks works on Peppermint OS and is verified. It should work on Lubuntu and Lubuntu-based distro's.
Note:
The windows size for LXTerminal given in the instructions are only meant as an example. You can choose your own windows size and put them in the correct field and/or replace ***x** with the windows size you have chosen.
Hack 1:
Set the terminal size when opening LXTerminal via PCManFM filemanager
When the LXTerminal is opened via the filemanager (tools > Open current folder in terminal or shortcut key F4), the size of the terminal can be fixed like this:
Open the filemanager
Go to: Edit > Preferences > Advanced
Change the Terminal emulator field from:
lxsession-default-terminal %s
into:
"lxterminal --geometry=***x**"%s
were:
***x** is the window size (i.e.: 120x40)
Click on Close
When this is done, LXTerminal will be opened with the new size using PCManFM filemanager.
Hack 2:
Set the terminal size through an executable script
Another way to set the window size of LXTerminal is by creating an executable file and place this in $PATH before the original lxterminal executable file.
The original file is: /usr/bin/lxterminal.
The new file must be placed in /usr/local/sbin/
This new lxterminal file will execute the old lxterminal file but the old file will be executed with the new geometry (windows size) option for lxterminal that we have set in the new file.
To execute the old lxterminal file with the added geometry, follow the steps below:
First we need to create the new script:
Open a terminal and type (or copy/paste) this command:
For distro's using gedit:
gksudo gedit /usr/local/sbin/lxterminal
For distro's using leafpad:
gksudo leafpad /usr/local/sbin/lxterminal
A text file will be opened. Add the following lines to this file:
#!/bin/bash
/usr/bin/lxterminal --geometry=***x**
exit
were:
***x** is the window size (i.e.: 120x40)
Save and close this file
Now we have to make this script executable:
Open a terminal and type (or copy/paste) the following command:
sudo chmod +x /usr/local/sbin/lxterminal
Close the terminal and reboot your system
Now open PCManFM to check if it opens with the geometry you set in the executable file.