Open a terminal with font size option through command line
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?
Open
gnome-terminal
and chooseFile/New profile
. You will see the current defaults.Enter a new profile name, let's say SmallFont. Modify the settings (including font size) as desired, and save.
Open a new window with
File/Open Terminal/SmallFont
to check if things look OK.Close this window.
Enter
gnome-terminal --window-with-profile=SmallFont
. This should now have the proper font size.
To emulate the ctrl+- behavior you can pass zoom
argument. For instance:
gnome-terminal --zoom=0.8