-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
41 lines (31 loc) · 1.2 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
# Use 256 colors
setw -g xterm-keys on
set -g default-terminal "screen-256color"
# Don't rename windows automatically
set-option -g allow-rename off
set -g status-left ''
set -g status-right "#(cat /sys/class/power_supply/BAT0/capacity)\% #(cat /sys/class/power_supply/BAT0/status) │ %H:%M %d.%m.%y"
# Set scrollback buffer
set -g history-limit 10000
# Set colors and display format
setw -g window-status-format " #I: #W "
setw -g window-status-current-format " #I: #W "
setw -g window-status-current-style fg=colour016
setw -g window-status-current-style bg=colour009
# Neovim suggestion
set-option -sg escape-time 10
# Start window and pane count at 1
set -g base-index 1
setw -g pane-base-index 1
# Change command key-binding to <Ctrl>a to match screens behaviour
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Bind 'v' and 'y' as in Vim and copy to X clipboard
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
bind-key p run "xclip -o -sel clip | tmux load-buffer - ; tmux paste-buffer"
# Bind for pane synchronization
bind a set-window-option synchronize-panes