diff options
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/.tmux.conf | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..9b6d18e --- /dev/null +++ b/tmux/.tmux.conf | |||
@@ -0,0 +1,62 @@ | |||
1 | set -g prefix C-a | ||
2 | unbind-key C-b | ||
3 | bind-key C-a send-prefix | ||
4 | |||
5 | bind r source-file ~/.tmux.conf | ||
6 | |||
7 | set-option -g default-terminal xterm-256color-italic | ||
8 | set escape-time 20 | ||
9 | |||
10 | set -g mouse on | ||
11 | |||
12 | set -g base-index 1 | ||
13 | setw -g pane-base-index 1 | ||
14 | |||
15 | # pane binds | ||
16 | bind -n M-j select-pane -D | ||
17 | bind -n M-k select-pane -U | ||
18 | bind-key v split-window -h -c "#{pane_current_path}" | ||
19 | bind-key h split-window -v -c "#{pane_current_path}" | ||
20 | bind-key '"' split-window -v -c "#{pane_current_path}" | ||
21 | |||
22 | # window binds | ||
23 | bind -n M-h previous-window | ||
24 | bind -n M-l next-window | ||
25 | bind-key s choose-session | ||
26 | bind-key c new-window -c "#{pane_current_path}" | ||
27 | bind-key ) swap-window -t +1 | ||
28 | bind-key ( swap-window -t -1 | ||
29 | bind-key [ copy-mode | ||
30 | |||
31 | bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"' | ||
32 | |||
33 | # statusline hide / unhide | ||
34 | bind -n M-down set -q status off | ||
35 | bind -n M-up set -q status on | ||
36 | |||
37 | bind-key -T copy-mode-vi v send-keys -X begin-selection | ||
38 | bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c " | ||
39 | bind-key -T copy-mode-vi r send-keys -X rectangle-toggle | ||
40 | bind P paste-buffer | ||
41 | |||
42 | bind E command-prompt -p "Command:" \ | ||
43 | "run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \ | ||
44 | | xargs -I PANE tmux send-keys -t PANE '%1' Enter\"" | ||
45 | |||
46 | set-window-option -g allow-rename off | ||
47 | |||
48 | set -g pane-border-style fg=colour11 | ||
49 | set -g pane-active-border-style fg=colour8 | ||
50 | |||
51 | set -g status-justify right | ||
52 | set -g status-right "" | ||
53 | set -g status-style "bg=colour0" | ||
54 | set -ag status-style "fg=colour7" | ||
55 | |||
56 | set -g window-status-current-format "#[fg=colour15] #W" | ||
57 | set -g window-status-format "#[fg=colour8] #W" | ||
58 | |||
59 | set -g status-left-length 100 | ||
60 | set -g status-left "#[fg=colour15]#(date +"%H%M") #[fg=colour8]hrs " | ||
61 | set -ag status-left "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y") " | ||
62 | set -ag status-left "#[fg=colour7]#(~/scripts/bat -q)#[fg=colour12]" | ||