7

I need a command line to open a gnome-terminal in a specified position of my screen and with specified font-size.

I'm already able to open it into specified position using --geometry option; but then I need to manually press ctrl+- four times to obtain needed look.

Noting that I don't want this font-size to be a default option for all my terminals, is there a way to open it with (very) small font from command line?

2
  • 2
    Have you tried creating a profile with the desired font size, then starting the terminal with gnome-terminal --window-with-profile=PROFILENAME?
    – Jos
    Commented Apr 10, 2017 at 8:46
  • @Jos thank you - I haven't. How do I create profile?
    – Jack
    Commented Apr 10, 2017 at 8:47

2 Answers 2

11
  1. Open gnome-terminal and choose File/New profile. You will see the current defaults.

  2. Enter a new profile name, let's say SmallFont. Modify the settings (including font size) as desired, and save.

  3. Open a new window with File/Open Terminal/SmallFont to check if things look OK.

  4. Close this window.

  5. Enter gnome-terminal --window-with-profile=SmallFont. This should now have the proper font size.

1
  • Correct! It also works with --geometry option. Note that under Edit->Preferences menu you can edit and delete all stored profiles.
    – Jack
    Commented Apr 10, 2017 at 9:21
2

To emulate the ctrl+- behavior you can pass zoom argument. For instance:

gnome-terminal --zoom=0.8

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .