Sixdsn / terra-terminal

Terra is a GTK+3.0 based terminal emulator with useful user interface, it also supports multiple terminals with splitting screen horizontally or vertically. New features have been added since September 2013. It's a pretty new and experimental project, if you want to contribute just checkout and try.
GNU General Public License v3.0
7 stars 3 forks source link

Control the window size using percentages #84

Open SchnWalter opened 9 years ago

SchnWalter commented 9 years ago

I believe that it would be better if we are to control the window size using percentages of the display, and not using absolute pixel values.

And maybe have the windows positioned at the top-center by default.

        # Layout default settings.
        'width': 100,  # % of screen width
        'height': 80,  # % of screen height
        'posx': 'center',
        'posy': 'top',

Do we want to be able to freely move the terminal around? Maybe we could have it fixed at the top center... And then have the option to position it in a different place in the window properties/settings.

A long time ago, I've been using terra as a replacement for "Help" (on F1). Because I saw that every time I pressed "F1" instead of "Esc". It pis__d the h___ out of me everywhere this happened: be it inside a File Manager, an IDE or a web browser. I've been instantly closing that Help window every single time.

So I decided to put my terminal on F1 (but I don't suggest this as a default shortcut :smile: ) and all things were great... if I needed help, chances were that a terminal window could be helpful. :)

What do you think? Should we also have several fixed positions? (top-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center and bottom-right)

Sixdsn commented 9 years ago

We already have some fixed positions:

vertical-position = X
horizontal-position = Y

this can be set in the Window Properties menu. With this you will see where it's used: grep -E "vertical-position|horizontal-position" terra/*.py But i still save the exact position of the window in case the user wants to move it some place else. The thing is that it's a window and i don't want users to be frustrated because they can't move it anywhere. Plus this allows you to move one of your terra window from a screen to another.