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