Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to use the mouse to navigate between different window panes which are split vertically or horizontally?

share|improve this question
up vote 38 down vote accepted

See the mouse-select-pane option in man tmux:

mouse-select-pane [on | off]
If on, tmux captures the mouse and when a window is split into multiple panes the mouse may be used to select the current pane. The mouse click is also passed through to the application as normal.

You can enable this by adding it to your .tmux.conf: set -g mouse-select-pane on

As of tmux 2.1, the option is simply: mouse:

  • Mouse-mode has been rewritten. There's now no longer options for:

    • mouse-resize-pane
    • mouse-select-pane
    • mouse-select-window
    • mode-mouse

    Instead there is just one option: 'mouse' which turns on mouse support entirely.

share|improve this answer
This works great but as I have noticed you loose the ability to select text with mouse or copy mode (prefix Ctrl + [) when you have more than 1 pane. – Patryk Jan 7 '13 at 12:08
Just saw, that, indeed, I lost the ability to select text with the mouse, but found that I still can select it with SHIFT key being pressed. OpenSuse 12.3, GNOME terminal 3.6.1, tmux 1.7. – user72025 Sep 7 '15 at 0:53
This option doesn't seem to be available in v2.1. – SpaghettiCat Nov 10 '15 at 9:09
@NewWorld Updated... – jasonwryan Nov 10 '15 at 15:52
was happy with this but it seems to have broken less pagination so.. nope... I'm on tmux 2.0, may try again with the new setup after upgrading to 2.1 – Louis Maddox Dec 4 '15 at 23:51

Your Answer


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.