-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
40 lines (30 loc) · 1.24 KB
/
tmux.conf
File metadata and controls
40 lines (30 loc) · 1.24 KB
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
# Use 256 colors
setw -g xterm-keys on
set -g default-terminal "screen-256color"
# Don't rename windows automatically
set -g allow-rename off
# Set scrollback buffer
set -g history-limit 10000
# Set colors and display format of status bar
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"
setw -g window-status-format " #I: #W "
setw -g window-status-current-format " #I: #W "
set -g status-style fg=colour007,bg=colour236,dim
setw -g window-status-style fg=colour007,bg=colour236,dim
setw -g window-status-current-style fg=colour007,bg=colour008,bright
# 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