Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've just resized a pane using by holding leader (C-b) and using up/down arrow keys. I know I could just use percentages, but it would be handy if tmux told me the sizing of current layout.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

In tmux 1.7 and later you can extract the pane dimensions like this:

tmux display -p -t s:0.1 '#{pane_width}x#{pane_height}'

Check out the man page for all the variations that “target-pane” supports (s:0.1 above means pane 1 of window 0 of the session named “s”) and the list of all the other “format” variables (the #{…} bits).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.