5

Fairly new to tmux, and have been gradually adding stuff to my config file.

I have the line set -g status-position bottom to put my status bar at the bottom, but there is still a large amount of clearance at the bottom of the frame.
enter image description here

I would like the bar to be flush with the bottom of the screen.

This was the only other SE question I could find, and tmux's Github issues didn't seem to have anything. The man page has only top and bottom as options for status-position, and no other relevant options I could find.

Any dot file dynamos got any recommendations?

Prunus Persica
  • 186
  • 1
  • 9
  • Hack the source; it is not configurable. – jasonwryan Feb 22 '18 at 20:37
  • Does your terminal emulator lock the display height to full rows of display, or does it allow smooth resizing? tmux usually displays on the lower full row of terminal output, which might not coincide with the bottom of a pseudo-terminal. – 111--- Feb 22 '18 at 20:46
  • jasonwryan maybe if I don't find a solution you'll see a pull request in a few months (: – Prunus Persica Feb 22 '18 at 20:50
  • datUser not entirely sure what you mean. Using Terminator, looking around for the display height thing mentioned – Prunus Persica Feb 22 '18 at 20:51
  • 1
    Try just resizing the height a bit, some emulators do this in increments of complete rows of input. Others don't enforce that and just fudge the margins of the terminal emulator. That gap could just be a UI margin rather than any real space below the tmux bar. Just do some playing with the window size of Terminator. OR it could be a default margin inside of terminator. – 111--- Feb 22 '18 at 20:56
  • Aye, found that it was a margin being enforced by Terminator, but only when using multiple tabs. tmux is gradually reducing my reliance on such anyway, so not so much of a problem now. – Prunus Persica Mar 01 '18 at 17:28

1 Answers1

2

Some terminals have default padding on the sides, if you're using gnome-terminal, try adding the following to ~/.config/gtk-3.0/gtk.css

VteTerminal,
vte-terminal,
TerminalScreen {
  padding: 0px;
  margin: 0px;
  -VteTerminal-inner-border: 0px;
}

Also, scrollbars might take up additional padding so disabling it helped in my case.

Related

Pablo A
  • 2,712
Rufus
  • 444
  • Additionally if each line takes exactly N pixels and the height is not divisible by N then the non-zero remainder has to go somewhere; it cannot belong to any line. In computers it's common to count from the top (top-left corner specifically), so the remainder will most likely be at the bottom. – Kamil Maciorowski Oct 12 '22 at 15:49