############################################## ## 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 %%'"