---
title: "tmux resize-panes"
description: "https://youtu.be/hpFYE2LU7xc"
date: 2021-07-20
published: true
tags:
  - cli
  - linux
  - tmux
template: blog-post
---


[https://youtu.be/hpFYE2LU7xc](https://youtu.be/hpFYE2LU7xc){.youtube-embed}

Resizing panes in tmux can be quite difficult in default tmux, I
use a set of keybingings to help resize panes in the rare occasions
that I do need just a bit more space.  I set the keybinding to the same as my
split navigation bindings but shifted. They are very vim like (h,j,k,l).

``` bash
# resize panes
#―――――――――――――――――――――――――――――
bind -n M-H resize-pane -L 2
bind -n M-L resize-pane -R 2
bind -n M-K resize-pane -U 2
bind -n M-J resize-pane -D 2
```

Most often when I need to resize panes I just grab the edge of the pane with my
mouse.  Yes the mouse, its not that often that I actually need to change the
size of a pane.

``` bash
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
```

<a href="/tmux-nav-2021/" class="wikilink" data-title="How I navigate tmux in 2021" data-description="change_speed = (speed) =&gt; [...document.querySelectorAll(&#39;video&#39;)].map(v =&gt; v.playbackRate=v.playbackRate+speed)" data-date="2021-05-11">How I navigate tmux in 2021</a>

> for more information on how I navigate tmux, check out this full post
