tmux/.tmux.conf

100 lines
3.1 KiB
Plaintext
Raw Normal View History

2017-02-10 00:14:22 +00:00
set -g default-terminal "tmux-256color"
# Set up default session, attach to an existing one if available
new -As0
# Split window
splitw -v -p 60
splitw -h -p 50
# Start programs
2016-06-25 01:39:12 +00:00
send -t 0:0.0 'weechat' Enter
send -t 0:0.2 'vifm' Enter
# Set focus on pane 1
selectp -t 0:0.1
2016-01-20 19:49:27 +00:00
set-option -g assume-paste-time 1
set-option -g base-index 1
set-option -g pane-base-index 1
set-option -g default-command ""
set-option -g default-shell "/bin/bash"
set-option -g destroy-unattached off
set-option -g detach-on-destroy on
set-option -g display-panes-active-colour red
set-option -g display-panes-colour blue
set-option -g display-panes-time 1000
set-option -g display-time 750
set-option -g history-limit 10000
2016-01-20 19:49:27 +00:00
set-option -g word-separators " -_@"
set-option -g renumber-windows off
set-option -g repeat-time 500
set-option -g set-titles off
set-option -g set-titles-string "#S:#I:#W - "#T" #{session_alerts}"
set-option -g status on
set-option -g status-interval 15
set-option -g status-justify left
set-option -g status-left "[#S] "
set-option -g status-left-length 10
set-option -g status-left-style default
set-option -g status-position bottom
# Change prefix to C-a
set-option -g prefix C-a
# Pane title, time HH:mm, date mm.dd.yyyy in right status bar
set-option -g status-right "%m.%d.%y %H:%M "
set-option -g status-right-length 40
set-option -g status-right-style default
# Status bar colors
set-option -g status-style fg=black,bg=cyan
set-option -g message-command-style fg=green,bg=black
set-option -g message-style fg=white,bg=red
set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
# Set audible bell on, and visual bell off because it is slooooowwwww
set-option -g bell-action any
set-option -g bell-on-alert on
set-option -g visual-bell off
set-option -g visual-silence off
set-option -g visual-activity off
# Pane active colors
set-option -g pane-active-border-style fg=cyan,bright
# Pane inactive colors
set-option -g pane-border-style fg=colour8
# Enable mouse scroll up to enable copy mode and start scrolling
bind -n WheelUpPane select-pane -t= \; send-keys -M
bind -n WheelDownPane select-pane -t= \; send-keys -M
2016-01-20 19:49:27 +00:00
set-option -g mouse on
# Use C-a,Shift-R to reload configuration
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Use C-a,a to send prefix to nested session
bind-key a send-prefix
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
2016-06-09 22:26:48 +00:00
# Do the same for HJKL
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
# No delay for escape key press
set -sg escape-time 0
# Various copy mode tweaks
bind-key -T copy-mode-vi Home send -X start-of-line
bind-key -T copy-mode-vi End send -X end-of-line
# Sync copy mode and PRIMARY selection
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe "xsel -i -p -b"
bind-key -T copy-mode-vi Enter send -X copy-pipe "xsel -i -p -b"
bind-key -T copy-mode-vi y send -X copy-pipe "xsel -i -p -b"