dotfiles/.tmux.conf
2012-08-30 13:38:16 -07:00

110 lines
2.7 KiB
Bash

### screen-like keybindings
unbind C-b
set -g prefix C-a
bind C-a last-window
bind a send-prefix
#bind A command-prompt "rename-window %%"
#bind Escape copy-mode
# vi-keys everywhere; anything else would be uncivilized
setw -g xterm-keys on
setw -g mode-keys vi
set -g status-keys vi
# mouse settings
#set -g mouse-select-pane on
#set -g mouse-select-window on
#set -g mouse-resize-pane on
# movement
bind h select-pane -L
bind k select-pane -U
bind j select-pane -D
bind l select-pane -R
#bind Tab down-pane
#bind BTab up-pane
# swapping
#bind Left swap-pane -L
bind Up swap-pane -U
bind Down swap-pane -D
#bind Right swap-pane -R
# Reload key
bind r source-file ~/.tmux.conf
# Moving between windows
#bind " " next-window
#bind BSpace previous-window
#bind '"' choose-window
#bind l refresh-client
# splits
#unbind %
#unbind '"'
#bind | split-window -h
#bind - split-window -v
#bind = next-layout
# confirm before killing a window or server
#bind k confirm kill-window
bind \ confirm-before "kill-server"
# nice, big scrollback buffer (lines)
set -g history-limit 5000
# lock after 30 minutes of inactivity
#set-option -g lock-after-time 1800
#bind ^X lock-server
# 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
### Initial windows
#setenv -g SSH_AUTH_SOCK $HOME/.tmux-ssh-agent
#new -d -n agent "ssh-agent -a $SSH_AUTH_SOCK zsh"
#neww -n netdb
#neww -n root
#neww -n root
#neww -n root
#neww -n root
#neww -n root
#neww -n mutt
#selectw -t 0
### Colors
#set -g status-bg black
#set -g status-fg white
#setw -g window-status-current-bg white
#setw -g window-status-current-fg blue
setw -g utf8 on
### Status bar
#set -g status-right "#[fg=magenta] @#H #[fg=cyan]%Y-%m-%d #[fg=yellow]%a #[fg=green]%H:%M #[fg=blue]#(uptime|awk '{split(substr($0, index($0, "load")), a, ":"); print a[2]}')#[default]"
#set -g status off
#set -g status-utf8 on
#set -g status-justify left
#set -g status-bg black
#set -g status-fg white
#set -g status-left-length 40
#set -g pane-active-border-fg red
#set -g pane-active-border-bg default
#set -g pane-border-fg red
#set -g pane-border-bg default
#set -g message-fg black
#set -g message-bg green
#setw -g mode-bg black
#setw -g window-status-bg black
#setw -g window-status-current-fg green
#setw -g window-status-alert-attr default
#setw -g window-status-alert-fg yellow
#set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
# set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
#set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
# vim:ft=tmux