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