Search code examples
tmux

How to shuffle the order of panes in a tmux window?


I would like to shuffle the order of panes in a tmux window.

I didn't find any instructions about it in the tmux help or cheatsheet, except for swapping specific panes.

Is there a way to shuffle the order of panes?


Solution

  • You can rotate all the panes in a window by using the rotate-window command. I use the following binding to rotate all the panes in my window:

    bind-key -n M-r rotate-window -Ut :+
    

    (Alt+r rotates all panes in window)