vimrc clean + snippets
[dotfiles.git] / .tmux.conf
1 # pinosaur's dwm inspired tmux.conf
2
3 set -sg escape-time 0
4 set -g mouse off
5
6 bind -n M-r source-file ~/.tmux.conf \; display "reloaded config file"
7
8 # dwm like key bindings
9 bind -n M-Enter split-window -h
10 # bind -n M-N split-window -v
11 bind -n M-Enter split-window -h -c "#{pane_current_path}"
12 bind -n M-h resize-pane -L 5
13 bind -n M-l resize-pane -R 5
14 bind -n M-K swap-pane -U
15 bind -n M-J swap-pane -D
16 bind -n M-C kill-pane
17 bind -n M-k select-pane -L
18 bind -n M-j select-pane -R
19 bind -n M-Q kill-server
20
21 # window stuff
22 set -g base-index 1
23
24 bind -n M-1 if-shell 'tmux select-window -t:1' '' 'new-window -t:1'
25 bind -n M-2 if-shell 'tmux select-window -t:2' '' 'new-window -t:2'
26 bind -n M-3 if-shell 'tmux select-window -t:3' '' 'new-window -t:3'
27 bind -n M-4 if-shell 'tmux select-window -t:4' '' 'new-window -t:4'
28 bind -n M-5 if-shell 'tmux select-window -t:5' '' 'new-window -t:5'
29 bind -n M-6 if-shell 'tmux select-window -t:6' '' 'new-window -t:6'
30 bind -n M-7 if-shell 'tmux select-window -t:7' '' 'new-window -t:7'
31 bind -n M-8 if-shell 'tmux select-window -t:8' '' 'new-window -t:8'
32 bind -n M-9 if-shell 'tmux select-window -t:9' '' 'new-window -t:9'
33
34 bind -n M-w choose-tree
35
36 # statusbar
37 set-option -g status-position top
38 set-window-option -g automatic-rename on
39
40 # set-window-option -g window-status-fg white
41 # set-window-option -g window-status-bg black
42 # set-window-option -g window-status-current-fg black
43 # set-window-option -g window-status-current-bg green
44
45 set -g status-left ""
46 #set -g status-right ""
47 set -g window-status-format "[#I]"
48 set -g window-status-current-format "[#I]"
49 set -g window-status-separator ""
50
51 set -g status-right "/ #(blocks_bat) / #(blocks_ram) / #(blocks_mem) / #(blocks_date) / #(whoami) "
52 set status-right-length 80
53