dotfiles/tmux/tmux.conf

124 lines
2.5 KiB
Text
Raw Normal View History

############
######
# Tmux Configuration for niblock
###
############
#tmux display things in 256 colors
set -g default-terminal "screen-256color"
#start window numbers at 1
set -g base-index 1
2015-11-04 01:38:01 +00:00
setw -g pane-base-index 1
#renumber windows sequentially after closing any of them
set -g renumber-windows on
2015-11-04 01:38:01 +00:00
#change default delay to be a bit more responsive
set -sg escape-time 0
#amount of time for which messages/indicators are displayed (in ms)
set -g display-time 2000
2015-11-04 01:38:01 +00:00
######
# Mouse
###
2016-08-20 23:51:09 +00:00
#setw -g mode-mouse on
#set -g mouse-select-pane on
set -g mouse on
2015-11-04 01:38:01 +00:00
######
# Colors
###
## Status Bar and Related Items
# Bar itself
set -g status-fg cyan
2015-11-04 01:38:01 +00:00
set -g status-bg black
# window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg black
2015-11-04 01:38:01 +00:00
setw -g window-status-current-attr bright
## Pane Dividers
2015-11-10 02:38:19 +00:00
set -g pane-border-fg black
set -g pane-border-bg black
set -g pane-active-border-fg colour51
set -g pane-active-border-bg black
2015-11-04 01:38:01 +00:00
## Command Line
set -g message-fg red
set -g message-bg black
set -g message-attr bright
######
# Status Line
###
set -g status-utf8 on
setw -g monitor-activity on
set -g visual-activity on
2016-04-06 02:21:53 +00:00
set -g allow-rename off
2015-11-04 01:38:01 +00:00
set -g status-left-length 40
set -g status-left "#[bright][ #S ]"
2016-04-28 17:49:53 +00:00
set -g status-right-length 80
set -g status-right "#(ruby ~/.dotfiles/tmux/clocks.rb)"
2015-11-04 01:38:01 +00:00
######
# Keybinds
###
#act like vim
setw -g mode-keys vi
#pane movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#window movement
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
#pane resizing
bind -r H resize-pane -L 10
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r L resize-pane -R 10
#split window and fix path for tmux 1.9
bind | split-window -h #-c "#{pane_current_path}"
bind - split-window -v #-c "#{pane_current_path}"
# reload config file
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
# copy/paste improvements :: NOT WORKING PROPERLY NOW
#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
# Capture a pane into file for uploading to Gist
2016-04-06 02:21:53 +00:00
# bind-key u capture-pane \; save-buffer /tmp/tmux-buffer
2015-11-28 02:10:39 +00:00
######
# Plugins
###
# TPM - Tmux Plugin Manager
set -g @plugin 'tmux-plugins/tpm'
2016-08-20 23:51:09 +00:00
# Resurrect sessions
2015-11-28 02:10:39 +00:00
set -g @plugin 'tmux-plugins/tmux-resurrect'
2016-08-20 23:51:09 +00:00
# Allow for scroll-wheel copy mode
set -g @plugin 'nhdaly/tmux-scroll-copy-mode'
2015-11-28 02:10:39 +00:00
# Run TPM
run '~/.tmux/plugins/tpm/tpm'