commit 9bea737d8b7220567c1ef46667c788b3275cb0ce
parent 93803da9208509747ab1e08b57e430ba92ae407e
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Sat, 19 Mar 2016 08:49:32 -0700
reload with C-a R, rotate layout with C-a r
Diffstat:
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/.tmux.conf b/.tmux.conf
@@ -60,12 +60,6 @@ bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)n?vim(diff)?$|emacs.*$' && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)n?vim(diff)?$|emacs.*$' && tmux send-keys C-l) || tmux select-pane -R"
-# split window
-bind v split-window -v
-bind C-v split-window -v
-bind s split-window -h
-#bind C-s split-window -h
-
# Copy mode with <C-Space><Space>
bind Space copy-mode
bind C-Space copy-mode
@@ -73,7 +67,7 @@ bind C-Space copy-mode
# zoom pane
bind -r z resize-pane -Z
-bind r source-file ~/.tmux.conf \; display "Source file reloaded"
+bind R source-file ~/.tmux.conf \; display "Source file reloaded"
set -g base-index 1 # start window numbering at 1
set -g pane-base-index 1 # start pane numbering at 1
@@ -174,3 +168,7 @@ set -g message-attr bright
# use urlview to follow URLs
bind-key u capture-pane \; save-buffer /tmp/active_tmux_buffer \; new-window -n urlview '$SHELL -c "urlview < /tmp/active_tmux_buffer && rm /tmp/active_tmux_buffer"'
+
+# cycle between preset layouts. select specific presets with select-layout <n>
+bind -r n next-layout
+bind -r r rotate-layout