Score:1

Gnome-terminal padding only when fullscreen?

lr flag

I'd like to add padding to the left and right of my terminal when in full screen so that the terminal itself doesn't actually take up the whole screen. I can get the exact effect I want by editing ~/.config/gtk-3.0/gtk.css and adding :

vte-terminal {
    padding: 20px 250px 20px 250px;
}

But then when I don't run the terminal in full screen, it is basically all padding and becomes unusable. What I'd like is 0 padding unless its full screen, then apply that css. Is this possible? is there another way to do it? A different terminal that has this function? I thought since css, maybe you could use media rules, but those don't seem to be implemented from what I've looked into.

ChanganAuto avatar
us flag
Ubuntu release/version?
vanadium avatar
cn flag
That is not possible. Find a compromise and use small padding that also works when not full screen.
Score:2
lr flag

It surprises me this isn't a more common request. Especially with the ultrawide monitors that exist today. Do people just not use fullscreen? I like the immersion, but maybe I'm strange.

I am using Cinnamon atm. I do use i3wm as well, but lately have been using mainly Cinnamon. Anyway, here is my hacky work around.

I installed the terminal "Guake", which has a terminal always open in the background, that you can bring to the foreground with a shortcut key.

I created the ~/.config/gtk-3.0/gtk.css and added:

vte-terminal {
  padding: 20px 250px 20px 250px;
}

But then changed its name to gtk.css.something.

Then wrote a small script that cd to that containing folder, renames the file to the proper name, launches gnome-terminal in full screen and then changes the name back to including an extension that disables it.

So, I start guake, execute my script and I have a full screen terminal.

If I need a quick terminal just for a calculator or to check something, I use Guake. While I'm coding or doing something more involved, I use the full screen terminal.

I'll admit it's not a great solution, and I'm not 100% happy with it. Its clunky and not perfect, but it has been working for me so far.

Score:0
um flag

If you want padding, then I would suggest using a tiling window manager like Awesome WM as this is not possible in Gnome.

See r/UnixPorn for great examples of what they can do, and DistroTube made a great video on how to set it up as well.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.