1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | ##############################################
## locate: ${XDG_CONFIG_HOME}/.tmux.conf ##
## author: milomouse (github.com/milomouse) ##
## detail: configuration file for `tmux' ##
##############################################
##+ command prefix:
set-option -g prefix C-e
bind-key C-e send-prefix
##+ reload tmux.conf:
bind-key r source-file /howl/conf/.tmux.conf
##+ basic global settings:
set-option -g default-shell /bin/zsh
set-option -g status-keys vi
set-window-option -g mode-keys vi
set-window-option -g utf8 on
set-window-option -g mode-mouse off
set-option -g mouse-select-pane off
set-option -g history-limit 4000
##+ copy mode to escape key:
unbind-key [
bind-key Escape copy-mode
##+ current window navigation:
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
##+ moving and swapping:
bind-key N swap-pane -D
bind-key P swap-pane -U
##+ resizing:
bind-key -r C-h resize-pane -L
bind-key -r C-j resize-pane -D
bind-key -r C-k resize-pane -U
bind-key -r C-l resize-pane -R
##+ splitting and cycling:
unbind %
bind-key = split-window -h
unbind '"'
bind-key - split-window -v
bind-key u last-window
bind-key C-n next-window
bind-key C-p previous-window
##+ window title:
set-option -g set-titles on
set-option -g set-titles-string '[#S:#I] #W'
set-window-option -g automatic-rename on
##+ messages:
set-window-option -g mode-bg magenta
set-window-option -g mode-fg black
set-option -g message-bg magenta
set-option -g message-fg black
##+ panes:
set-option -g pane-border-fg black
set-option -g pane-border-bg default
set-option -g pane-active-border-fg white
set-option -g pane-active-border-bg default
##+ status bar:
set-option -g status-utf8 on
set-option -g status-justify right
set-option -g status-bg '#0e0e0e'
set-option -g status-fg '#222222'
set-option -g status-interval 5
set-option -g status-left-length 60
set-option -g status-left '#[fg=#222222]## #[fg=#555555]#T#[default]'
set-option -g status-right '#[fg=#333333]#S:#P#[default]'
set-option -g visual-activity on
set-window-option -g monitor-activity on
set-window-option -g window-status-current-bg '#0e0e0e'
set-window-option -g window-status-current-fg '#3d3a3a'
set-window-option -g window-status-bg '#0e0e0e'
set-window-option -g window-status-fg '#222222'
##+ clock:
set-window-option -g clock-mode-colour cyan
set-window-option -g clock-mode-style 24
##+ external commands:
unbind-key ,
unbind-key .
bind-key -r , run-shell 'mifo --prev'
bind-key -r . run-shell 'mifo --next'
bind-key < command-prompt "run-shell 'mifo --prev %%'"
bind-key > command-prompt "run-shell 'mifo --next %%'"
bind-key / run-shell 'mifo --toggle'
bind-key ? run-shell 'mifo --random'
bind-key m command-prompt "split-window -v 'exec man %%'"
|
x
Notes
Simple and clean tmux configuration.
No fancy add-ons!