-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
137 lines (107 loc) · 3.83 KB
/
dot_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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# set default-terminal colors to display default terminal colors
set -g default-terminal "tmux-256color"
# set -sa terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -sg terminal-overrides ",*:RGB"
# Proper colors
# set-option -ga terminal-overrides ',xterm-256color:Tc'
set-option -sa terminal-features ',xterm-256color:RGB'
# ​
# Undercurl
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
set -g default-command "/usr/bin/env fish"
unbind C-b
set -g prefix C-q
bind-key C-a send-prefix
unbind %
bind ! split-window -h
unbind -
unbind '"'
bind - split-window -v
unbind r
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
# neovim options
set-option -sg escape-time 10
set-option -g focus-events on
set -g mouse on
set -g base-index 1
set -g pane-base-index 1
set-window-option -g mode-keys vi
unbind y
bind y copy-mode
bind-key -T copy-mode-vi "v" send -X begin-selection
bind-key -T copy-mode-vi "y" send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane
# APPEARANCE
# COLOR THEME
# --> Catppuccin (Mocha)
thm_bg="#1e1e2e"
thm_fg="#cdd6f4"
thm_cyan="#89dceb"
thm_black="#181825"
thm_gray="#313244"
thm_magenta="#cba6f7"
thm_pink="#f5c2e7"
thm_red="#f38ba8"
thm_green="#a6e3a1"
thm_yellow="#f9e2af"
thm_blue="#89b4fa"
thm_orange="#fab387"
thm_black4="#585b70"
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
set -g base-index 1
set -g message-style "fg=$thm_yellow"
set -g message-command-style "fg=$thm_black"
set -g pane-border-style "fg=$thm_gray"
set -g pane-active-border-style "fg=$thm_blue"
# STATUS LINE
set -g status-position top
set -g status-style "fg=$thm_blue,bg=default"
set -g status-left "#[fg=$thm_yellow,bold] #S "
set -g status-right "#{battery_color_fg}#[bg=default]#{battery_icon_charge} #{battery_percentage} #{cpu_fg_color} #{cpu_percentage} #{ram_fg_color} #{ram_percentage} #[fg=$thm_blue] %Y/%m/%d - %H:%M"
set -g status-interval 2
set -g status-justify left
set -g status-left-length 100
set -g status-right-length 100
set -g @batt_icon_charge_tier8 ""
set -g @batt_icon_charge_tier7 ""
set -g @batt_icon_charge_tier6 ""
set -g @batt_icon_charge_tier5 ""
set -g @batt_icon_charge_tier4 ""
set -g @batt_icon_charge_tier3 ""
set -g @batt_icon_charge_tier2 ""
set -g @batt_icon_charge_tier1 ""
# set -g @batt_color_charge_secondary "$thm_bg"
set -g @batt_color_charge_primary_tier1 "$thm_red"
set -g @batt_color_charge_primary_tier2 "$thm_red"
set -g @batt_color_charge_primary_tier3 "$thm_orange"
set -g @batt_color_charge_primary_tier4 "$thm_orange"
set -g @batt_color_charge_primary_tier5 "$thm_yellow"
set -g @batt_color_charge_primary_tier6 "$thm_yellow"
set -g @batt_color_charge_primary_tier7 "$thm_green"
set -g @batt_color_charge_primary_tier8 "$thm_green"
set -g @batt_color_status_primary_charged "$thm_blue"
setw -g window-status-separator " "
setw -g window-status-style "fg=$thm_blue"
setw -g window-status-format "#I: #W"
setw -g window-status-current-format "#[bg=$thm_blue,bold]#[fg=$thm_bg,bold]#I:#[bg=black]#[fg=$thm_fg] #W"
# tpm plugin
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "christoomey/vim-tmux-navigator"
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin "tmux-plugins/tmux-cpu"
set -g @plugin "tmux-plugins/tmux-battery"
set -g @plugin 'tmux-plugins/tmux-open'
set -g @resurrect-capture-pane-contents "off"
set -g @plugin 'omerxx/tmux-sessionx'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run "~/.tmux/plugins/tpm/tpm"