summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--skel/.tmux.conf17
1 files changed, 12 insertions, 5 deletions
diff --git a/skel/.tmux.conf b/skel/.tmux.conf
index db7a2ed..4989908 100644
--- a/skel/.tmux.conf
+++ b/skel/.tmux.conf
@@ -17,13 +17,19 @@ set-option -g repeat-time 500
set-option -g history-limit 16000
set-option -g default-terminal screen-256color
-set-option -g utf8 on
set-option -g monitor-activity on
-set-option -g mouse-utf8 on
-set-option -g mouse-select-pane on
-set-option -g mouse-select-window on
-set-window-option -g mode-mouse on
+# mouse options changed in v2.1
+# enable mouse support
+set -g mouse on
+
+# v2.2 has auto-utf8-detection
+#set-option -g utf8 on
+#set-option -g mouse-utf8 on
+
+bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
+bind -n WheelDownPane select-pane -t= \; send-keys -M
+
set-window-option -g aggressive-resize on
set-option -g renumber-windows on
@@ -34,3 +40,4 @@ set-option -g status-left '[ #H ][ #S ]['
set-option -g status-left-length 32
set-option -g status-right '][ load #(cut -d " " -f 1-3 /proc/loadavg) ][ %Y-%m-%d %H:%M ]'
set-option -g status-right-length 48
+