-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
78 lines (59 loc) · 1.69 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
##############
## Packages ##
##############
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'catppuccin/tmux'
# set -g @plugin 'jaclu/tmux-menus'
# set -g @plugin 'tmux-plugins/tmux-sensible'
#########################
## Theme Configuration ##
#########################
set -g @catppuccin_window_tabs_enabled on
set -g @catppuccin_user "off"
set -g @catppuccin_host "off"
set -g @catppuccin_powerline_icons_theme_enabled on
set -g @catppuccin_l_left_separator ""
set -g @catppuccin_l_right_separator ""
set -g @catppuccin_r_left_separator ""
set -g @catppuccin_r_right_separator ""
##################
## Key Bindings ##
##################
# Change the leading key
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Split panes using | and -
bind-key | split-window -h
bind-key - split-window -v
unbind-key '"'
unbind-key %
# Switch panes using Alt-arrow without prefix
bind-key -n M-Left select-pane -L
bind-key -n M-Right select-pane -R
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
#############
## Options ##
#############
# For reference: https://superuser.com/questions/758843/difference-between-global-server-session-and-window-options
## Window Options ##
# Start pane numbering at
setw -g pane-base-index 1
# Enable Mouse mode
setw -g mouse on
## Session Options ##
# Start window numbering at 1
set-option -g base-index 1
# Reallocate windows index
set-option -g renumber-windows on
# Reduce escape time
set-option -sg escape-time 10
# Turn on focus event
set-option -g focus-events on
###########
## Utils ##
###########
# Reload config file
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
run '~/.tmux/plugins/tpm/tpm'