-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
70 lines (53 loc) · 2.13 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
# -- hotkeys -------------------------------------------------------------------
unbind C-Space
set -g prefix C-Space
bind C-Space send-prefix
# Space to swap to last window
# C-Space to swap to last session
bind Space last-window
bind-key C-Space switch-client -l
set -g mouse on
# tmux is normally 0 based, lets make it 1 based
set -g base-index 1
setw -g pane-base-index 1
# if we remove window 3, move 4 to 3. Don't allow gaps.
set -g renumber-windows on
# remove confirm step when killing a window or pane
bind-key & kill-window
bind-key x kill-pane
# Relax!
set -sg escape-time 10
set -sg repeat-time 600
# Better name management
bind c new-window -c "#{pane_current_path}"
bind n new-window -c "#{pane_current_path}"
bind C new-window -c "#{pane_current_path}" \; command-prompt "rename-window '%%'"
bind N new-window -c "#{pane_current_path}" \; command-prompt "rename-window '%%'"
# wemux binding
unbind t
bind t run-shell 'wemux display_users'
bind Tab run-shell "tsesh --popup"
bind C-k run-shell "tmux-kill-sessions" \; display-message "killed all other sessions"
# safe keys - L C R H T N S
bind-key -r L run-shell "~/.local/scripts/tmux-sessionizer ~/code/elixir/lights_out/"
bind-key -r C run-shell "~/.local/scripts/tmux-sessionizer ~/code/documintlabs"
# -- plugins -------------------------------------------------------------------
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavour 'macchiato'
# set -g @plugin 'jabirali/tmux-tilish'
# set -g @plugin 'ofirgall/tmux-window-name'
set -g @plugin 'whame/tmux-modal'
set -g @modal-keybindings-conf $HOME/.config/tmux/tmux-modal.conf
set -g @modal-on-start on
set -g @modal-always-sticky on
set -g @plugin 'tmux-plugins/tmux-pain-control'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @resurrect-strategy-nvim 'session'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @continuum-restore 'on'
# set -g @plugin 'tmux-plugins/tmux-copycat'
# set -g @plugin '27medkamal/tmux-session-wizard'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'