]> git.friedersdorff.com Git - max/dotfiles.git/blob - tmux/.tmux.conf
Flesh out tmux configuration
[max/dotfiles.git] / tmux / .tmux.conf
1 # Set vi mode
2 set -g mode-keys vi
3 set -g history-limit 10000
4
5
6 set -g default-command /bin/bash
7
8 unbind C-b 
9 set -g prefix C-a 
10 bind C-a send-prefix
11
12 set -g default-terminal "screen-256color"
13
14 set -s escape-time 0
15
16 # Options from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
17 # Better switching
18 bind | split-window -h
19 bind - split-window -v
20 unbind '"'
21 unbind %
22
23 # Easier pane switching
24 bind -n M-k select-pane -U
25 bind -n M-j select-pane -D
26 bind -n M-h select-pane -L
27 bind -n M-l select-pane -R
28
29 # Easy reloading of config
30 bind r source-file ~/.tmux.conf
31
32 # Mouse bindings. THIS IS AWESOME!
33 set -g mouse on
34
35 # Dont rename windows (allows setting mail for instance)
36 set -g allow-rename off
37
38
39
40 ####################################
41 # DESING ###########################
42 # By /u/dothebarbwa on /r/unixporn #
43 ####################################
44
45 # loud or quiet?
46 set-option -g visual-activity off
47 set-option -g visual-bell off
48 set-option -g visual-silence off
49 set-window-option -g monitor-activity off
50 set-option -g bell-action none
51
52 #  modes
53 setw -g clock-mode-colour colour5
54 setw -g mode-attr bold
55 setw -g mode-fg colour7
56 setw -g mode-bg colour8
57
58 # panes
59 set -g pane-border-bg colour8
60 set -g pane-border-fg colour0
61 set -g pane-active-border-bg colour0
62 set -g pane-active-border-fg colour7
63
64 # statusbar
65 set -g status-position bottom
66 set -g status-justify left
67 set -g status-bg colour0
68 set -g status-fg colour137
69 set -g status-attr dim
70 set -g status-left ''
71 set -g status-right '#[fg=colour233,bg=colour8,bold] %d/%m #[fg=colour233,bg=colour7,bold] %H:%M:%S '
72 set -g status-right-length 50
73 set -g status-left-length 20
74
75 setw -g window-status-current-fg colour3
76 setw -g window-status-current-bg colour8
77 setw -g window-status-current-attr bold
78 setw -g window-status-current-format ' #I#[fg=colour3]:#[fg=colour7]#W#[fg=colour249]#F '
79
80 setw -g window-status-fg colour8
81 setw -g window-status-bg colour7
82 setw -g window-status-attr none
83 setw -g window-status-format ' #I#[fg=colour8]:#[fg=colour8]#W#[fg=colour8]#F '
84
85 setw -g window-status-bell-attr bold
86 setw -g window-status-bell-fg colour255
87 setw -g window-status-bell-bg colour1
88
89 # messages
90 set -g message-attr bold
91 set -g message-fg colour3
92 set -g message-bg colour0