-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
112 lines (95 loc) · 2.87 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
set -g default-terminal "tmux-256color"
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
# Reload config
unbind r
bind-key r source-file "$HOME/.tmux.conf"
# Reset prefix
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Vim style pane selection
bind h select-pane -L
bind C-M-h select-pane -L
bind j select-pane -D
bind C-M-j select-pane -D
bind k select-pane -U
bind C-M-k select-pane -U
bind l select-pane -R
bind C-M-l select-pane -R
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Vim style (???) window selection
bind S-h previous-window
bind S-l next-window
# Vi mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi S-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Manage panes
bind - split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
unbind %
# SessionX
set -g @sessionx-bind o
set -g @sessionx-filter-current true
set -g @sessionx-window-height '80%'
set -g @sessionx-tmuxinator-mode 'on'
# Status bar
set -g status-position top
set -g status-left-length 100
set -g status-right-length 100
set -g @dracula-transparent-powerline-bg false
set -g @dracula-plugins "cpu-usage ram-usage time" # can also use network-bandwidth, weather
set -g @dracula-show-flags true
set -g @dracula-show-empty-plugins false
set -g @dracula-show-powerline true
set -g @dracula-show-left-icon "> #S"
set -g @dracula-show-timezone false
set -g @dracula-time-format "%b %d %H:%M"
# set -g @dracula-show-location false
# set -g @dracula-fixed-location "Charlotte"
set -g @dracula-cpu-usage-label ""
set -g @dracula-cpu-usage-colors "gray white"
set -g @dracula-ram-usage-label " "
set -g @dracula-ram-usage-colors "gray white"
set -g @dracula-time-colors "dark_purple white"
# Copy below to reset color theme
set -g @dracula-colors "
pink='#EE64AE'
orange='#FAB795'
yellow='#FBC3A7'
green='#29D398'
cyan='#59E3E3'
light_purple='#3FC6DE'
white='#FADAD1'
dark_gray='#1C1E26'
red='#E95678'
gray='#232530'
dark_purple='#64488A'
"
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'omerxx/tmux-sessionx'
set -g @plugin 'jimeh/tmuxifier'
set -g @plugin 'dracula/tmux'
run '~/.tmux/plugins/tpm/tpm'