-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
54 lines (45 loc) · 1.8 KB
/
.tmux.conf
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
#
# ~/.tmux.conf
#
### Change the default $TERM to tmux-256color if it's not a console
set -g default-terminal screen
if-shell '[[ "$TERM" != "linux" ]]' 'set-option -g default-terminal "tmux-256color"'
### Options
set-option -g set-titles on
set-option -g mode-keys vi
set-option -g mouse on
set-option -g base-index 1
set-option -g focus-events on
set-option -g history-limit 1000
set-option -g monitor-activity off
set-option -g renumber-windows on
set-option -g visual-activity off
set-option -gs escape-time 1
### Change the prefix key to C-a
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
### Bindings
bind-key r source-file ~/.tmux.conf \; display-message 'Reloaded ~/tmux.conf'
bind-key , command-prompt "rename-window '%%'"
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key -r C-h resize-pane -L 3
bind-key -r C-j resize-pane -D 3
bind-key -r C-k resize-pane -U 3
bind-key -r C-l resize-pane -R 3
bind-key -r n next-window
bind-key -r p previous-window
bind-key -r o last-window
bind-key -r Left swap-window -t -1 \; select-window -t -1
bind-key -r Right swap-window -t +1 \; select-window -t +1
bind-key c new-window
bind-key C new-window -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
bind-key - split-window -v -c "#{pane_current_path}"
### Styles
set-option -g status-style bg=black,fg=white
set-option -g status-right '#($HOME/.config/polybar/get-battery minimal) #(date +"%d-%b-%y %H:%M")'
set-option -g window-status-current-format '#I:#W#[fg=green]*'