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

2 Answers 2

  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.

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

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

gnome-terminal --zoom=0.8

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.