-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
116 lines (91 loc) · 3.3 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Automatically set window title and renumber
set-window-option -g automatic-rename on
set-option -g renumber-windows on
set-option -g set-titles on
set -g default-terminal "tmux-256color"
set-option -a terminal-overrides ",*:RGB"
set-option -a terminal-overrides ",*:Tc"
set -g status-keys vi
set -g history-limit 10000
setw -g mode-keys vi
setw -g monitor-activity on
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# command to reload config file
bind r source-file ~/.tmux.conf
# shortcuts for my main layouts
bind m run-shell "~/bin/resize-adaptable.sh -l main-vertical -p 33"
bind M run-shell "~/bin/resize-adaptable.sh -l main-horizontal -p 33"
# prefix C-l for c-l and clear-history (since c-l is used by the tmux-vim mappings)
bind C-l send-keys C-l \; clear-history
# Enable mouse mode
set -g mouse on
# needed for vim-tmux-nagivator
set -g focus-events on
# pane border and title
set-option -g status-position top
setw -g pane-border-status top # top/bottom/off
setw -g pane-border-format '-'
setw -g pane-border-style fg='colour238'
setw -g pane-active-border-style fg='colour238'
# statusline
set -g status-bg "#1f1f28" # this should be `status-bg terminal` but it stopped working
set -g status-justify "left"
set -g status "on"
set -g message-command-style "fg=#727169,"
set -g message-style "fg=#727169,"
set -g status-right-length "200"
set -g status-interval 10
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}/#{pane_current_command}'
set -g window-status-format "#[fg=#727169] #W"
set -g window-status-current-format "#[bold,fg=#727169] #W"
set -g window-status-separator "#[fg=#727169] "
set -g window-status-style "fg=#727169"
# battery icons
set -g @batt_icon_charge_tier8 '' # 95%-100%
set -g @batt_icon_charge_tier7 '' # 80%-95%
set -g @batt_icon_charge_tier6 '' # 65%-80%
set -g @batt_icon_charge_tier5 '' # 50%-65%
set -g @batt_icon_charge_tier4 '' # 35%-50%
set -g @batt_icon_charge_tier3 '' # 20%-35%
set -g @batt_icon_charge_tier2 '' # 5%-20%
set -g @batt_icon_charge_tier1 '' # 0%-5%
set -g @batt_icon_status_charged ''
set -g @batt_icon_status_charging ''
# 10
# 20
# 30
# 40
# 50
# 60
# 70
# 80
# 90
set -g status-left "#[bold,fg=#727169] "
set -g status-right "#[fg=#727169] #{df_avail} #{df_percent} #(./bin/pueue-status) #(./bin/docker_status) %H:%M #{battery_color_charge_fg}#[bg=terminal]#{battery_icon} "
# longer scrollback
set -g history-limit 50000
# thumbs config
set -g @thumbs-command 'echo -n {} | pbcopy'
# standard plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'RyanMillerC/better-vim-tmux-resizer'
# statusbar / window titles
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tassaron/tmux-df'
# copy/paste
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'fcsonline/tmux-thumbs'
run-shell ~/.tmux/plugins/tmux-thumbs/tmux-thumbs.tmux
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'