From 67b0ec5741d327d27afe88783d85fcf2c4c4f204 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 3 Nov 2013 12:30:45 +0100 Subject: First commit --- .tmux.conf | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 .tmux.conf (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..eb33da1 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,117 @@ +# Ring the bell if any background window rang a bell +set -g bell-action any + +# Default termtype. If the rcfile sets $TERM, that overrides this value. +set -g default-terminal "screen-256color" + +# split windows like vim +# vim's definition of a horizontal/vertical split is reversed from tmux's +bind s split-window -v +bind v split-window -h + +# move around panes with hjkl, as one would in vim after pressing ctrl-w +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Create splits and vertical splits +bind-key v split-window -h +bind-key s split-window + +# Pane resize in all four directions using vi bindings. +# Can use these raw but I map them to shift-ctrl- in iTerm. +bind-key J resize-pane -D +bind-key K resize-pane -U +bind-key H resize-pane -L +bind-key L resize-pane -R +# Fix ctrl + L/R +#bind-key -n C-Right send-keys w +#bind-key -n C-Left send-keys b + +# setting titles on +set -g set-titles on +set -g set-titles-string "#T" + +set base-index 1 +set -g history-limit 10000 +set-window-option -g xterm-keys on #pass xterminal keys to tmux terminals +setw -g mode-mouse on + +#new -n Irssi irssi +#neww -n Serv htop +#neww -n Shell + +#Help +# c Create a new window +# n Change to next window +# p Change to previous window +# " Split pane horizontally +# % Split pane vertically +# , Rename current window +# o Move to next pane +# unbind C-b Unbind Control-Key +# set -g prefix C-a Bind to new Control-Key +# Ctrl-b l (Move to the previously selected window) +# Ctrl-b w (List all windows / window numbers) +# Ctrl-b (Move to the specified window number, the default bindings are from 0 – 9) +# Ctrl-b q (Show pane numbers, when the numbers show up type the key to goto that pane) +# Ctrl-b f (Search for window name) +# Ctrl-b w (Select from interactive list of windows) + + + + +# Keep your finger on ctrl, or don't +bind-key ^D detach-client + +# Use vi keybindings for tmux commandline input. +# Note that to get command mode you need to hit ESC twice... +set -g status-keys vi + +# Use vi keybindings in copy and choice modes +setw -g mode-keys vi + +# set first window to index 1 (not 0) to map more to the keyboard layout... +set -g base-index 1 + +# color scheme (styled as vim-powerline) +set -g status-left-length 52 +set -g status-right-length 451 +set -g status-fg white +set -g status-bg colour234 +set -g pane-border-fg colour245 +set -g pane-active-border-fg colour39 +set -g message-fg colour16 +set -g message-bg colour221 +set -g message-attr bold +set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀' +set -g status-right '#[fg=colour234,bg=colour39]⮀#[fg=colour234,bg=colour39] #(tmux-mem-cpu-load 2 0) #[fg=colour39,bg=colour234]⮀#[fg=colour39,bg=colour234] %H:%M ⮂' +set -g window-status-format "#[fg=colour235,bg=colour252,bold] #I #W " +set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=black,bg=colour39,noreverse,bold] #I: #W #[fg=colour39,bg=colour234,nobold]⮀" + +# No escape time for vi mode +set -sg escape-time 0 + +# next/prev window +bind-key -n M-k next-window +bind-key -n M-j previous-window + +# select windows +bind-key -n M-1 select-window -t 1 +bind-key -n M-2 select-window -t 2 +bind-key -n M-3 select-window -t 3 +bind-key -n M-4 select-window -t 4 +bind-key -n M-5 select-window -t 5 +bind-key -n M-6 select-window -t 6 +bind-key -n M-7 select-window -t 7 +bind-key -n M-8 select-window -t 8 +bind-key -n M-9 select-window -t 9 +bind-key -n M-0 select-window -t 0 + +# Reload config +bind r source-file ~/.tmux.conf + +# Swap windows +bind-key m command-prompt -p "move window to:" "swap-window -t '%%'" + -- cgit v1.2.3-54-g00ecf