-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
78 lines (56 loc) · 2.33 KB
/
Copy path.tmux.conf
File metadata and controls
78 lines (56 loc) · 2.33 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
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
# PLUGINS
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-battery'
# set -g @plugin 'jimeh/tmux-themepack'
# set -g @themepack 'powerline/block/cyan'
set -g @plugin 'catppuccin/tmux#v2.1.2'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'tmux-plugins/tmux-yank'
# Fast reloading
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Awesome navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Smart splits
bind | split-window -h
bind - split-window -v
# Smart resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
unbind -T copy-mode-vi MouseDragEnd1Pane
if-shell "uname | grep -q Darwin" \
'bind -T copy-mode-vi MouseDown1Pane select-pane \; send-keys -X copy-pipe "pbcopy" \; send-keys -X clear-selection' \
'bind -T copy-mode-vi MouseDown1Pane select-pane \; send-keys -X copy-pipe "xclip -selection clipboard" \; send-keys -X clear-selection'
# Enabled mouse
set-option -g mouse on
set-option -g set-clipboard on
set -g status-interval 2
# Without this cpu / battery doesn't load
run ~/.tmux/plugins/tmux/catppuccin.tmux
set -g status-right-length 100
set -g status-left-length 100
set -g status-left " "
set -g @catppuccin_flavor "mocha"
set -g @catppuccin_window_status_style "rounded"
set -g @catppuccin_date_time_text " %H:%M:%S"
set -g status-right "#{E:@catppuccin_status_session}"
set -agF status-right "#{E:@catppuccin_status_cpu}"
if-shell "uname | grep -q Linux" "" 'set -agF status-right "#{E:@catppuccin_status_battery}"'
set -ag status-right "#{E:@catppuccin_status_date_time}"
if-shell "uname | grep -q Linux" 'set -ag status-right "#[fg=#{@thm_overlay_0},bg=default] #H "'
set -g @catppuccin_window_current_text " #{?#{==:#W,zsh},#(basename #{pane_current_path}),#W}"
set -g @catppuccin_window_text " #{?#{==:#W,zsh},#(basename #{pane_current_path}),#W}"
bind C-f display-popup -E "tms"
bind C-j display-popup -E "tms switch"
bind C-w command-prompt -p "Rename active session to: " "run-shell 'tms rename %1'"
bind C-r "run-shell 'tms refresh'"
# TPM initialization
run '~/.tmux/plugins/tpm/tpm'