all repos — dotfiles-base @ 23b5492723397297ac5b1a100c9c37bbd475d02a

base important configs that can safely be used almost anywhere

.tmux.conf

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
# x1phosura's tmux config
# (there's really not too much interesting here)

# Notes to future self:
# to apply tmux configs on the fly while it's running, type Ctrl-b, then run
# :source ~/.tmux.conf
# Changes will be applied within the current session (bc they take place on the
# server).
# Also, tmux salved selected text in "buffers." Use: `tmux deleteb` to delete 
# the most recently saved buffer


####################### Misc. configuration ########################

# Refresh status line every 5 sec (good for updating time, playing music, etc)
set -g status-interval 5

# Set history scrollback buffer to 5000 lines (default 2000)
set -g history-limit 5000

# Refresh status line every 5 sec (good for updating time, playing music, etc)
set -g status-interval 5

set-option -g status "on"

# Use vi-like bindings for stuff
set -g mode-keys vi

# enables mouse mode (for tmux version > 2.1)
set -g mouse on

# fixed REALLY DUMB tmux crash in the past (probably unnecessary now)
#set-option -g default-shell /bin/bash


####################### Key bindings ########################
# Note: to output current key bindings, run the following in the shell:
# `tmux list-keys` or `tmux lsk`

# Hold 'Alt' to access vi-like pane switching
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R

# Use 'Slt-Shift' to access vi-like pane switching
bind -n M-H resize-pane -L 2
bind -n M-J resize-pane -D 2
bind -n M-K resize-pane -U 2
bind -n M-L resize-pane -R 2


####################### Color configuration ########################

# variables (personal)
accent1=colour127
accent2=colour133

# variables (work)
#accent1=colour63
#accent2=colour33

lightfg=colour7
palefg=colour223
darkfg=colour236
lessdarkfg=colour239

# Fixes color stuff in tmux/vim
set -g default-terminal "screen-256color"

# Default statusbar color
set-option -g status-style bg=$accent1,fg=$lightfg

# Active window title colors
set-window-option -g window-status-current-style bg=$accent2,fg=$lightfg

# Set active pane border color
set-option -g pane-active-border-style fg=$accent1
# Set inactive pane border color
set-option -g pane-border-style fg=$lessdarkfg

# Message info
set-option -g message-style bg=$lessdarkfg,fg=$palefg

# Writing commands inactive
set-option -g message-command-style bg=$lessdarkfg,fg=$lightfg

# Pane number display
set-option -g display-panes-active-colour $accent1
set-option -g display-panes-colour $darkfg