From 21efef201e7d59abd72a72c59f49faea4a21609e Mon Sep 17 00:00:00 2001 From: motius Date: Thu, 9 Mar 2017 17:02:07 +0100 Subject: [PATCH] C-Q as prefix. C-Q z ignores mouse. C-Z e enables it back --- tmux/tmux.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index fcf033f..96f16a4 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -1,4 +1,7 @@ # https://gist.github.com/spicycode/1229612 +unbind C-b +set -g prefix C-q +bind C-q send-prefix # 0 is too far from ` ;) set -g base-index 1 @@ -11,7 +14,7 @@ set -g status-keys vi set -g history-limit 10000 setw -g mode-keys vi -set -g mouse on +set -g mode-mouse on setw -g monitor-activity on bind-key v split-window -h @@ -33,6 +36,10 @@ bind j select-pane -D bind k select-pane -U bind l select-pane -R +# mouse mode on-off +bind e set -g mode-mouse on +bind z set -g mode-mouse off + # Use Alt-vim keys without prefix key to switch panes bind -n M-h select-pane -L bind -n M-j select-pane -D