-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
120 lines (96 loc) · 3.61 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
# bind <leader>-r to source the .tmux.conf file.
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins/'
# set the default shell to zsh
set-option -g default-shell /bin/zsh
# set the leader from C-b to C-s
# set -g prefix C-s
# set vi bindings
setw -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# easier to go into copy mode, instead of using '['
bind Escape copy-mode
# more intuitive split commands
bind | split-window -hc "#{pane_current_path}"
bind - split-window -vc "#{pane_current_path}"
# make windows resizing easier
bind-key -r C-j resize-pane -D 5
bind-key -r C-k resize-pane -U 5
bind-key -r C-h resize-pane -L 5
bind-key -r C-l resize-pane -R 5
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
# swap pane to left or right.
bind -r "<" swap-pane -d -t -1
bind -r "," swap-pane -d -t -1
bind -r ">" swap-pane -d -t +1
bind -r "." swap-pane -d -t +1
# open new-window in the same path as current pane
bind c new-window -c "#{pane_current_path}"
# toggle to last window
bind Space last-window
# set-option -g default-terminal 'screen-254color'
# set-option -g terminal-overrides ',xterm-256color:RGB'
# list of plugins
set -g @plugin 'catppuccin/tmux'
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-resurrect'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'fcsonline/tmux-thumbs'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'wfxr/tmux-fzf-url'
set -g @plugin 'dracula/tmux'
# floating pluging
set -g @plugin 'omerxx/tmux-floax'
set -g @floax-bind 'z'
set -g @floax-bind-menu 'P'
set -g @floax-height '80%'
set -g @floax-width '80%'
# tmux-resurrect settings
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-dir '$HOME/.config/resurrect'
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
# set -g @catppuccin_flavor 'frappe' # latte, frappe, macchiato, mocha
set -g @catppuccin-show-powerline true
set -g @catppuccin_window_status_icon_enable "yes"
set -g @catppuccin_window_status_enable "yes"
# set -g @catppuccin_window_left_separator "|█"
# set -g @catppuccin_window_middle_separator "|█"
# set -g @catppuccin_window_right_separator "|█"
set -g @dracula-show-powerline false
set -g @dracula-fixed-location "Millbrae"
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, tmux-ram-usage, network, network-bandwidth, network-ping, ssh-session, attached-clients, network-vpn, time, mpc, spotify-tui, kubernetes-context, synchronize-panes
set -g @dracula-plugins "git cpu-usage ram-usage battery weather"
set -g @dracula-cpu-usage-colors "light_purple dark_gray"
set -g @dracula-git-colors "light_cyan dark_gray"
set -g @dracula-show-flags true
set -g @dracula-show-left-icon session
set -g @dracula-left-icon-padding 1
set -g status-right '#{battery_status_bg} Batt: #{battery_icon} #{battery_percentage} #{battery_remain} | %a %h-%d %H:%M '
# more settings
set -g status-position top
# set -g status-right-length 30
set -g status-bg lightSteelBlue3
set -g status-fg black
set -g history-limit 1000000
set -g base-index 1
set -g renumber-windows on
set -g mouse on
# set -g mouse-select-pane on
set-window-option -g aggressive-resize on
# Initialize TMUX plugin manager
# (keep this line at the very botton)
run -b ~/.tmux/plugins/tpm/tpm