summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2016-11-01 18:45:54 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2016-11-01 18:45:54 (GMT)
commita358e87064921a79683601e284bf60d8e327dc5c (patch)
tree23daf118b583211ec859807fcb2bd6280d415b56
parent8c1c939349f593054ae69a1aa8bd8d38791edf46 (diff)
downloaddot-files-a358e87064921a79683601e284bf60d8e327dc5c.zip
dot-files-a358e87064921a79683601e284bf60d8e327dc5c.tar.gz
dot-files-a358e87064921a79683601e284bf60d8e327dc5c.tar.bz2
tmux.conf: add alt-arrow binding, set hostname in status bar
-rw-r--r--tmux.conf20
1 files changed, 18 insertions, 2 deletions
diff --git a/tmux.conf b/tmux.conf
index 2079615..c018313 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -8,8 +8,11 @@ set-window-option -g xterm-keys on
# Start numbering at 1
set -g base-index 1
-# Rather than constraining window size to the maximum size of any client
-# connected to the *session*, constrain window size to the maximum size of any
+# Start numbering at 1
+set -g base-index 1
+
+# Rather than constraining window size to the maximum size of any client
+# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
@@ -19,6 +22,19 @@ bind - split-window -v
unbind '"'
unbind %
+# Statusbar: Show only Hostname, no user/date/time
+set -g status-right "#H"
+
+# Alt-left/right -> next/prev window WITHOUT CTRL-B prefix.
+bind -n M-Left next-window
+bind -n M-Right previous-window
+
+# Use Shift-Alt-Arrow keys without prefix key to switch panes
+bind -n M-S-Left select-pane -L
+bind -n M-S-Right select-pane -R
+bind -n M-S-Up select-pane -U
+bind -n M-S-Down select-pane -D
+
# Color taskbar based on server
if-shell 'hostname|grep -qw ^club' 'set -g status-bg blue ; set -g status-fg white'
if-shell 'hostname|grep -qw ^dj' 'set -g status-bg blue ; set -g status-fg white'