dotfiles/.tmux.conf

66 lines
1.8 KiB
Bash

set -g prefix C-a
unbind C-b
set -g base-index 1
setw -g pane-base-index 1
# Make vim more responsive
set -sg escape-time 10
bind-key C-o last-window
bind-key C-a select-pane -t :.+
bind-key a send-prefix
bind r source-file ~/.tmux.conf
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind-key C-n next-window
bind-key C-p previous-window
set -g set-titles off
set -g mouse on
set -g default-terminal tmux-256color
setw -g mode-keys vi
new -d
# shift-movement keys will resize panes
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# better mnemonics for splitting panes!
bind | split-window -h
bind - split-window -v
bind v split-window -h
bind = select-layout even-horizontal
# Status Bar
#set -g status-bg black
set -g status-interval 1
#set -g status-left '#[fg=green]#H#[default]'
#set -g status-left-length 20
#set -g status-right '#[fg=green]#(~/src/tpom/tpom) #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]'
set -g status-justify centre # center align window list
set -g status-style fg=white,bg=default
# default window title colors
set-window-option -g window-status-style fg=white,bg=default,dim
# active window title colors
set-window-option -g window-status-current-style fg=cyan,bg=default,bright
set-window-option -g window-style fg=#aaaaaa,bg=#111111
set-window-option -g window-active-style fg=terminal,bg=terminal
set -g status-left '#[fg=green][ #H ][ '
set -g status-right '#[fg=green]][ #{pane_width}x#{pane_height} #[bright]#[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[dim]#[fg=green]]'
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-style bg=red,bright