How can I configure the steps of font size changes in the terminal? I now use 10pt and the next step when using keyboard shortcuts is too big. How can I configure the step size?
How can I configure the steps of font size changes in the terminal? I now use 10pt and the next step when using keyboard shortcuts is too big. How can I configure the step size?
The script below will set the font size, of all profiles at once, in steps of 0.5. You will have to see if this is sufficient for you; the terminal does not react on all steps.
In my case, there was a visible change from
10.5
11
but then increasing from
had no effect until increasing once more to
12
This is probably related to the font size, in relation to the window size, which does not allow floats since you are using a monotype font in the terminal.
Nevertheless, the script offers the sizes that exist in this situation.
The script
How to use
terminalfont.py
Test- run the script by the commands:
to increase the font size, and
to decrease the font size
Explanation
Unfortunately, there is no key available in
gsettings
to set the font size of the terminal. We need to usedconf
directly to read and edit settings.We can first fetch the list of profiles though by the command:
Once we have the list of profiles, the script then first disables using the default font (per profile):
where
b1dcc9dd-5262-4d8d-a863-c897e6d979b9
is the profile's idSubsequently we read the current font & size with the command:
...we parse ot the font size, add or subtract
0.5
, and set the new size by:Note
As mentioned, if this is sufficient for you can only be tested by you. If it doesn't however, I am afraid we cannot fix it, because the font size has to be in a certain proportion to the terminal's window on a mono-type font.