gnome-terminal font resize (zoom in, zoom out), but adjust terminal height and width contrariwise for getting a "lock in" of window dimensions
Asked Answered
T

2

7

I like the zoom keys (control-+ and control--) a lot in Ubuntu 13.04's gnome-terminal, but the when zooming in, the terminal screen gets wider, too (and the opposite when zooming out)

Is there a way to keep the window's pixel dimensions approximately constant, while zooming font-size in and out (that means, the inside terminal characters height and width dimensions have to shrink and grow accordingly)?

The aimed behaviour is partly implemented already, in case the window has reached the maximum screen size, than it does a kind of "lock in place" and works as I would like have it working in cases where the window is not yet maximized....

When I remember, in older versions of Ubuntu, I've had this behaviour already (but I am not sure any more).

Any ideas? Thank You for helping.

Tessietessier answered 4/8, 2013 at 14:8 Comment(2)
Did you ever find a solution to this on gnome-terminal?Carruth
gnome-terminal unfort. no, but "konsole" has this feature (Steven's solution)Tessietessier
W
2

The Konsole Terminal (http://konsole.kde.org) from KDE has that feature.

I run GNOME 3.8.4 but use konsole as my primary terminal (for that reason actually).

Edit: Over seven years later, I run GNOME 40 and still use konsole for the zoom feature.

Warrenne answered 14/2, 2014 at 19:57 Comment(2)
the Konsole terminal works very nicely in this aspectTessietessier
kitty terminal is another good option, about the bugs, well things are not always perfect.Podgorica
P
1

I can’t tell you for sure, but since this is GNOME and moreover GNOME 3, it’s unlikely that the Terminal has this kind of customization built-in.

But in Linux, you can always improvise. How about the following.

  1. Find a program that can send keys to an X11 window. Maybe xdotool.
  2. Find a program that can control an X11 window’s geometry. Maybe xdotool.
  3. Write a short script that locates the terminal window (probably just the focused one), sends it Ctrl-Plus / Ctrl-Minus, waits a tiny bit, then sets its geometry to the one you like (or to whatever it was initially, which you can also query with xdotool).
  4. Bind this script to a keyboard shortcut of your choice, say Win+Plus / Win+Minus. No idea how to do this in modern Ubuntu / GNOME 3, but GNOME 2’s Metacity used to have GConf keys for user-defined shortcuts.
Purlin answered 4/8, 2013 at 16:22 Comment(2)
Thank You Vasiliy, this could probably lead to a solution, indeed.Tessietessier
It is related to a bug. But this "bug" has been solved. The thing what I am searching is a "new" feature, wondering why nobody else has this need.... eventually an potential option/setting would be: "preserve dimensions: yes/no". in the mean time I full-size the window (F11) and then dimensions (rows/columns number, not pixels) are not preserved. bugs.launchpad.net/ubuntu/+source/compiz/+bug/960084Tessietessier

© 2022 - 2024 — McMap. All rights reserved.