summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/tools/templates/tmux.conf.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/tools/templates/tmux.conf.j2 b/roles/tools/templates/tmux.conf.j2
index a7ac4ce..0313336 100644
--- a/roles/tools/templates/tmux.conf.j2
+++ b/roles/tools/templates/tmux.conf.j2
@@ -18,6 +18,9 @@ bind-key -n M-Left previous-window
18bind-key -n M-Right next-window 18bind-key -n M-Right next-window
19bind-key -n M-PageDown switch-client -n 19bind-key -n M-PageDown switch-client -n
20bind-key -n M-PageUp switch-client -p 20bind-key -n M-PageUp switch-client -p
21# duplicates to ensure continuity with "off" key-table
22bind-key -n C-M-PageDown switch-client -n
23bind-key -n C-M-PageUp switch-client -p
21 24
22bind-key M set-window-option monitor-activity 25bind-key M set-window-option monitor-activity
23bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer; rm -f /tmp/tmux-buffer"' 26bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer; rm -f /tmp/tmux-buffer"'
@@ -29,6 +32,13 @@ bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \
29bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary" 32bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection-and-cancel \; run-shell -b "tmux save-buffer - | xclip -i -selection primary"
30bind-key -T root MouseUp2Pane run-shell "tmux set-buffer \"$(xclip -o -selection primary)\"; tmux paste-buffer" 33bind-key -T root MouseUp2Pane run-shell "tmux set-buffer \"$(xclip -o -selection primary)\"; tmux paste-buffer"
31 34
35bind-key -T root F12 set-option prefix None \; set-option key-table off \; set-option status-style "bg=black"
36bind-key -T off F12 set-option -u prefix \; set-option -u key-table \; set-option -u status-style
37bind-key -T off C-M-PageDown switch-client -n
38bind-key -T off C-M-PageUp switch-client -p
39
40bind-key Tab command-prompt -p "which session?" "run-shell \"bash -i -c 'tmux_dev %1'\""
41
32# même hack que sur screen lorsqu'on veut profiter du scroll du terminal 42# même hack que sur screen lorsqu'on veut profiter du scroll du terminal
33# (xterm ...) 43# (xterm ...)
34set-option -g terminal-overrides 'xterm*:smcup@:rmcup@:Tc' 44set-option -g terminal-overrides 'xterm*:smcup@:rmcup@:Tc'