-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
75 lines (72 loc) · 2.64 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# General {{{
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",$TERM:Tc"
set -g status-position top
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
setw -g xterm-keys on
set -g base-index 1 # start windows numbering at 1
setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
set -g display-panes-time 800 # slightly longer pane indicators display time
set -g set-titles-string '#h ❐ #S ● #I #W'
set -g set-clipboard off
# 24 hour clock
setw -g clock-mode-style 24
# activity
set -g monitor-activity on
set -g visual-activity off
#}}}
#mapping {{{
# prefix
unbind C-b
set -g prefix C-t
bind C-t send-prefix
# sync input pane
bind e setw synchronize-panes on
bind E setw synchronize-panes off
# copy
unbind -Tcopy-mode-vi Enter
bind -Tcopy-mode-vi v send -X begin-selection
bind -Tcopy-mode-vi 'C-v' send -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
# clear both screen and history
bind -n C-l send-keys C-l \; run 'tmux clear-history'
# reload
bind C-r source-file $HOME/.tmux.conf\; display-message 'Reloaded.'
#}}}
#Plugins {{{
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'GROG/tmux-plugin-mem'
set -g @plugin 'soyuka/tmux-current-pane-hostname'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
#}}}
#Plugin Configs{{{
#tmux-mem
set -g @mem_high_percentage "80"
set -g @mem_low_percentage "50"
set -g @mem_ignore_cached "yes"
#tmux-cpu
set -g @cpu_percentage_format "%5.1f%%" # Add left padding
#tmux-prefix-highlight
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold'
#tmux-themepack
set -goq @themepack-status-right-area-left-format "#U@#H"
#}}}
run -b '~/.tmux/plugins/tpm/tpm'
# vim: set foldmethod=marker foldlevel=0: