]> Sergey Matveev's repositories - dotfiles.git/blob - tmux/.tmux.conf
tmux menu/popup password manager
[dotfiles.git] / tmux / .tmux.conf
1 set-option -g mode-keys vi
2 set-option -g base-index 1
3 set-option -g default-terminal "screen-256color"
4 set-option -g escape-time 1
5 set-option -g repeat-time 0
6 set-option -g history-limit 20000
7 set-option -g renumber-windows on
8
9 set-option -g prefix C-a
10 unbind-key C-b
11 bind-key C-a send-prefix
12
13 bind-key -n C-PgUp previous-window
14 bind-key -n C-PgDn next-window
15 bind-key -n S-PgUp copy-mode -u
16
17 bind '"' split-window -c "#{pane_current_path}"
18 bind % split-window -h -c "#{pane_current_path}"
19 bind c new-window -c "#{pane_current_path}"
20
21 set-option -g status-style "bg=black,fg=white"
22 set-option -g status-left "#S>"
23 set-option -g status-right "#T"
24 set-option -g status-justify centre
25
26 set-window-option -g automatic-rename on
27 set-window-option -g window-status-format "#I:#W:#T#F"
28 set-window-option -g window-status-style "bg=green fg=black"
29 set-window-option -g window-status-current-format "#I:#W#F"
30 set-window-option -g window-status-current-style "bg=red"
31 set-window-option -g window-status-last-style "bg=cyan"
32
33 bind-key b set-option status
34 unbind-key L
35
36 bind-key t display-menu \
37     music t "popup -KE -R ~/bin/tmux-menu-music.sh" \
38     pass p "popup -KE -R ~/bin/tmux-menu-pass.sh" \
39     dict d "popup -KE -R ~/bin/tmux-menu-dict.sh" \
40     top o "popup -KE -R \"top -s 1\""
41
42 bind-key u {
43     capture-pane -J
44     save-buffer /tmp/tmux-buffer
45     delete-buffer
46     popup -EK -R "urlview /tmp/tmux-buffer"
47 }
48
49 bind-key y {
50     capture-pane -J
51     save-buffer /tmp/tmux-buffer
52     delete-buffer
53     split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer'
54 }
55
56 bind-key Y {
57     capture-pane -J -S - -E -
58     save-buffer /tmp/tmux-buffer
59     delete-buffer
60     split-window 'vim -c "set listchars=" -c "match ExtraWhitespace //" /tmp/tmux-buffer'
61 }