-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
83 lines (66 loc) · 2.38 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
set -g terminal-overrides ",alacritty:RGB"
set-option -g terminal-features ",alacritty:usstyle"
set -s escape-time 0
# remap prefix from 'C-b' to 'C-g'
unbind C-b
set-option -g prefix C-g
bind-key C-g send-prefix
bind-key c new-window -c "#{pane_current_path}"
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
set -g base-index 1
setw -g pane-base-index 1
setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
set-window-option -g mode-keys vi
# pane navigation
bind h select-pane -L # move left
bind j select-pane -D # move down
bind k select-pane -U # move up
bind l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# maximize current pane
bind + run "cut -c3- '#{TMUX_CONF}' | sh -s _maximize_pane '#{session_name}' '#D'"
# pane resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
bind f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
# window navigation
unbind n
unbind p
bind -r C-h previous-window # select previous window
bind -r C-l next-window # select next window
bind Tab last-window # move to last active window
set -g mouse on
# bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# STYLE (TokyoNight Night)
# fg #c0caf5
# bg #1a1b26
# subbg #1f2335
# red #e06c75
# green #98c379
# yellow #e0af68
# orange #ff9e64
# blue #7aa2f7
# magenta #bb9af7
# cyan #7dcfff
# comment #565f89
# Generic status
set -g status-left-length 40
setw -g status-style fg='#c0caf5',bg='#1f2335'
setw -g status-right " %H:%M #h "
# Active window status
setw -g window-status-current-format " #{bold}#{window_index}:#{window_name}"
setw -g window-status-current-style fg='#98c379'
# Inactive window status
setw -g window-status-format " #{window_index}:#{window_name}"
setw -g window-status-style fg='#565f89'
# Pane border
set -g pane-border-style fg='#565f89'
set -g pane-active-border-style fg='#7dcfff'
# Command line and messages
set-window-option -g mode-style fg='#7aa2f7',bg='#1f2335'
set-option -g message-style fg='#7aa2f7',bg='#1f2335'