-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
68 lines (58 loc) · 2.62 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
# Source plugins
set -g @plugin 'tmux-plugins/tpm' # Plugin manager
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'jaclu/tmux-power-zoom'
set -g @plugin 'omerxx/tmux-sessionx'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# Power zoom customizations
set -g @power_zoom_trigger z
set -g @sessionx-bind 'o' # Open session x
set -g base-index 1 # start window numbers at 1 to match keyboard order
set -g default-shell $SHELL # Use system's default shell
set -g escape-time 0 # zero-out escape time delay (default 500ms)
set -g prefix C-a # Set prefix to Ctrl+a instead of Ctrl+b
set -g renumber-windows on # Renumbers windows on close
set -g status-position bottom # Window position of tmux modules
setw -g mode-keys vi # vi mode navigation
# Enable True Colors
set -g default-terminal "tmux-256color"
set-option -sa terminal-overrides ",xterm*:Tc"
# Create windows relative to current path
bind-key '"' split-window -c "#{pane_current_path}"
bind-key 'v' split-window -h -c "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
bind-key O display-popup -h 75% -w 80% -d "#{pane_current_path}" -E "overmind connect"
bind-key P display-popup -h 75% -w 80% -d "#{pane_current_path}"
# Prefix h/l keys to switch windows
bind-key h previous-window
bind-key l next-window
# Resource config with keybinding
bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
# Catppuccin customizations
set -g @catppuccin_flavour 'frappe'
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag,(),}"
set -g @catppuccin_status_modules_right "session application directory"
set -g @catppuccin_status_modules_left ""
set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
set -g @catppuccin_directory_text "#{b:pane_current_path}"
set -g @catppuccin_date_time_text "%H:%M"
# Run plugins
run '~/.tmux/plugins/tpm/tpm'