mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-21 22:18:07 +01:00
add tmux conf
This commit is contained in:
parent
66fe51d05f
commit
cf7c0296f1
1 changed files with 66 additions and 0 deletions
66
dot_tmux.conf
Normal file
66
dot_tmux.conf
Normal file
|
@ -0,0 +1,66 @@
|
|||
# change prefix wihout unbinding the default C-b
|
||||
#set-option -g prefix C-a
|
||||
#bind-key C-a send-prefix
|
||||
|
||||
# Split panes using | and -
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
unbind '"'
|
||||
unbind %
|
||||
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
|
||||
# fast reload
|
||||
bind r source-file ~/.tmux.conf
|
||||
|
||||
# switch panes using alt+arrow
|
||||
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
|
||||
|
||||
set -g mouse on
|
||||
|
||||
# don't rename windows automatically
|
||||
set-option -g allow-rename off
|
||||
|
||||
#set-window-option -g mode-keys vi
|
||||
|
||||
set -g default-terminal "xterm-256color"
|
||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||
|
||||
bind u capture-pane \;\
|
||||
save-buffer /tmp/tmux-buffer \;\
|
||||
split-window -l 10 "urlview /tmp/tmux-buffer"
|
||||
|
||||
# DESIGN
|
||||
|
||||
# clock mode
|
||||
setw -g clock-mode-colour colour1
|
||||
# copy mode
|
||||
setw -g mode-style 'fg=colour0 bg=colour1 bold'
|
||||
|
||||
# pane borders
|
||||
set -g pane-border-style 'fg=colour1'
|
||||
set -g pane-active-border-style 'fg=colour3'
|
||||
|
||||
# statusbar
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
set -g status-style 'fg=colour1'
|
||||
set -g status-left ''
|
||||
set -g status-right '%Y-%m-%d %H:%M '
|
||||
set -g status-right-length 50
|
||||
set -g status-left-length 10
|
||||
|
||||
setw -g window-status-current-style 'fg=colour0 bg=colour1 bold'
|
||||
setw -g window-status-current-format ' #I #W #F '
|
||||
|
||||
setw -g window-status-style 'fg=colour1 dim'
|
||||
setw -g window-status-format ' #I #[fg=colour7]#W #[fg=colour1]#F '
|
||||
|
||||
setw -g window-status-bell-style 'fg=colour2 bg=colour1 bold'
|
||||
|
||||
# messages
|
||||
set -g message-style 'fg=colour2 bg=colour0 bold'
|
||||
|
Loading…
Reference in a new issue