claws fix
[~madcoder/dotfiles.git] / tmux.conf
1 # set the prefix to ^G
2
3 set  -g default-terminal screen-256color
4 set  -g history-limit 100000
5 set  -g mouse-select-pane on
6 set -wg mode-mouse on
7 set -wg xterm-keys       1
8 set  -g status-keys     vi
9 set -wg mode-keys       vi
10 set  -s escape-time    100
11
12 unbind C-b
13 set -g prefix C-g
14 bind g   send-prefix
15 bind C-g send-prefix
16
17 bind -n F5 source ~/.tmux.conf
18 bind -n M-x command-prompt
19
20 bind d detach
21 bind -n C-\ detach
22 bind -n C-up    resize-pane -U
23 bind -n C-down  resize-pane -D
24 bind -n C-left  resize-pane -L
25 bind -n C-right resize-pane -R
26
27 bind n   next-window
28 bind C-n next-window
29 bind p   previous-window
30 bind C-p previous-window
31 bind s   command-prompt "split-window -v '%%'"
32 bind S   command-prompt "split-window -v '%%'"
33 bind v   command-prompt "split-window -h '%%'"
34 bind C-v command-prompt "split-window -h '%%'"
35
36 bind Enter new-window
37 bind r command-prompt "new-window '%%'"
38 bind c confirm-before kill-pane
39 bind x confirm-before kill-pane
40 bind ! command-prompt -p Man: "split-window 'man %%'"
41 bind o break-pane
42
43 bind h select-pane -L
44 bind k select-pane -U
45 bind j select-pane -D
46 bind l select-pane -R
47 bind K swap-pane -U
48 bind J swap-pane -D
49 bind i display-message \; display-panes
50 set  -g display-panes-time 1500
51 set  -g display-time       1500
52
53 set  -g base-index 1
54 bind Tab choose-window
55 bind 1 select-window -t 1
56 bind 2 select-window -t 2
57 bind 3 select-window -t 3
58 bind 4 select-window -t 4
59 bind 5 select-window -t 5
60 bind 6 select-window -t 6
61 bind 7 select-window -t 7
62 bind 8 select-window -t 8
63 bind 9 select-window -t 9
64 bind 0 select-window -t 10
65
66 ##############################################################################
67 # Copy Mode
68 bind Escape copy-mode
69 bind C-' ' copy-mode
70 bind    -t vi-copy C-u    page-up
71 bind    -t vi-copy C-d    page-down
72 bind    -t vi-copy G      bottom-line
73 bind -n -t vi-copy Escape cancel
74
75 ##############################################################################
76 # Edit mode
77 bind -n -t vi-edit Escape switch-mode
78 bind -n -t vi-edit Up     history-up
79 bind -n -t vi-edit Down   history-down
80 bind -n -t vi-edit Left   cursor-left
81 bind -n -t vi-edit Right  cursor-right
82 bind -n -t vi-edit C-u    delete-line
83 bind -n -t vi-edit C-k    delete-end-of-line
84
85 bind -c -t vi-edit Escape cancel
86 bind -c -t vi-edit |      start-of-line
87
88 ##############################################################################
89 # Bells
90 set  -g visual-activity  on
91 set  -g visual-bell      off
92 set  -g bell-action      any
93 set -wg monitor-activity off
94
95 ##############################################################################
96 # Theme
97 set  -g status         on
98 set  -g status-attr    default
99 set  -g status-fg      white
100 set  -g status-bg      default
101 set  -g status-justify centre
102 set  -g status-utf8    on
103
104 set  -g status-left    "#[fg=green][ #[fg=blue,bold]%H:%M #[fg=green,nobold]]["
105 set  -g status-right   "#[fg=green]][ #[fg=blue,bold]#(cut -d' ' -f1-3 /proc/loadavg) #[fg=green,nobold]]"
106
107 # command/message line colors
108 set -g message-fg   white
109 set -g message-bg   red
110 set -g message-attr bright
111
112 # default window title colors
113 set -wg window-status-fg   white
114 set -wg window-status-bg   default
115 set -wg window-status-attr dim
116
117 set -wg window-status-format         '#I #W#F'
118 set -wg window-status-current-format '#[fg=red,nobold][#[fg=white,bold]#I #W#F#[fg=red,nobold]]'
119
120 set -g pane-border-bg default
121 set -g pane-border-fg default
122 set -g pane-active-border-bg default
123 set -g pane-active-border-fg red
124
125 # active window title colors
126 set -wg window-status-current-fg   white
127 set -wg window-status-current-bg   default
128 set -wg window-status-current-attr bright