Choose style:

Author Topic: LXTerminal terminal size  (Read 1909 times)

0 Members and 1 Guest are viewing this topic.

Offline nomko

  • Jr. Member
  • **
  • Posts: 37
  • Karma: -8
  • Linux User
    • View Profile
    • Easy tips for Linux
  • Peppermint version(s): Peppermint 5
LXTerminal terminal size
« on: November 21, 2014, 06:03:16 pm »
Hi,

It seems that LXterminal cannot be sized tom what i want.
Normally i set the terminal size to 120x40, but LXterminal doesn't seem to have some option to set the terminal size. Can this be done in a different way??
ASUS P5KPL-AM*Intel Core2 Quad CPU Q8200*4 GiB ram*nVidia GeForce 9500GT*Realtek RTL8101/8102E*Optiarc DVD-RW AD-7200A*HDD:Samsung HD501LJ/HD103SI*Sitecom X5-N600 Router

My Linux website

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: LXTerminal terminal size
« Reply #1 on: November 21, 2014, 06:28:59 pm »
Hi nomko try adding this: lxterminal --geometry=120x40 to the Keyboard Shortcuts in the Peppermint Control Center.  I hope this helps - have fun  ;)!

Edit:: If you want to launch the lxterminal from the file manager, launch PCManFM and navigate to the Edit tab, select Preferences and then Advanced in the new window. In the Terminal Emulator field enter the following:
Code: [Select]
"lxterminal --geometry=120x40"%s
That should provide you with the dimensions you are looking for.
« Last Edit: November 21, 2014, 06:49:14 pm by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: LXTerminal terminal size
« Reply #2 on: November 21, 2014, 07:57:08 pm »
I've found the easiest way to do this is to create an executable script called "lxterminal", and place it earlier in your $PATH than the original
(this way there's no need to edit keyboard shortcuts, or menu item commands, etc.)

/usr/bin/lxterminal
is the original

/usr/local/sbin
comes earlier in your $PATH .. so it we create an executable script in there, that runs the original lxterminal executable, but with the added "geometry" options, then every time "lxterminal" is run it will run your script, that then starts the proper lxterminal with your geometry.

Create the script:
Code: [Select]
sudo gedit /usr/local/sbin/lxterminal
and make it read:
Code: [Select]
#!/bin/bash
/usr/bin/lxterminal --geometry=120x40
exit
SAVE the file, and close gedit

Back in the terminal make the script executable:
Code: [Select]
sudo chmod +x /usr/local/sbin/lxterminal
Log off/on again

Once logged back on test by running
Code: [Select]
lxterminal
or by starting the terminal from the menu, or with Ctrl+Alt+T



To Undo
run:
Code: [Select]
sudo rm -v /usr/local/sbin/lxterminal
« Last Edit: November 21, 2014, 09:11:11 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: LXTerminal terminal size
« Reply #3 on: November 21, 2014, 08:14:00 pm »
Yeah, that makes sense  ;).  It works beautifully.  It needs to be invoked with:
Code: [Select]
sudo lxterminal
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: LXTerminal terminal size
« Reply #4 on: November 21, 2014, 08:28:14 pm »
Nope, should work with or without "sudo"
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: LXTerminal terminal size
« Reply #5 on: November 21, 2014, 08:43:33 pm »
Yup, you're right.  I logged out and back in and now it works without sudo.  Prior to that, launching without sudo, it was just the default size.
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: LXTerminal terminal size
« Reply #6 on: November 21, 2014, 09:12:40 pm »
Cheers Andy .. added a "log off/on again" to the instructions above :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline nomko

  • Jr. Member
  • **
  • Posts: 37
  • Karma: -8
  • Linux User
    • View Profile
    • Easy tips for Linux
  • Peppermint version(s): Peppermint 5
Re: LXTerminal terminal size
« Reply #7 on: November 25, 2014, 02:34:04 pm »
For some unknown reason the terminal appears at the left corner, can i change this so it appears in the center of the screen?

Thanks again!


Ps.:
Both tips about the screen size worked perfectly!
ASUS P5KPL-AM*Intel Core2 Quad CPU Q8200*4 GiB ram*nVidia GeForce 9500GT*Realtek RTL8101/8102E*Optiarc DVD-RW AD-7200A*HDD:Samsung HD501LJ/HD103SI*Sitecom X5-N600 Router

My Linux website

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25661
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: LXTerminal terminal size
« Reply #8 on: November 25, 2014, 02:46:06 pm »
Not specifically for lxterminal .. but you can for all windows under a given size

menu > Preferences > Peppermint Control Center > Advanced (tab)

then adjust the "Minimum window size to trigger smart placement" towards the right.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec