Skip to content

Commit f1ed456

Browse files
committed
🔧 Reorganize tmux config; add keybindings & options
1 parent 5aa796a commit f1ed456

File tree

2 files changed

+51
-16
lines changed

2 files changed

+51
-16
lines changed

home/.tmux.conf

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,66 @@ set -g @plugin 'tmux-plugins/tpm'
33
set -g @plugin 'tmux-plugins/tmux-sensible'
44
set -g @plugin 'dracula/tmux'
55

6-
# mouse support
7-
set -g mouse on
8-
9-
# dracula settings
6+
# ----------------------------
7+
# Dracula Theme Settings
8+
# ----------------------------
109
set -g @dracula-show-battery false
1110
set -g @dracula-show-network false
1211
set -g @dracula-show-timezone false
1312
set -g @dracula-show-weather false
13+
set -g @dracula-plugins "time"
14+
set -g @dracula-show-left-icon session
15+
set -g @dracula-day-month false
16+
set -g @dracula-military-time false
17+
18+
# ----------------------------
19+
# General Settings
20+
# ----------------------------
21+
# Mouse support
22+
set -g mouse on
23+
24+
# Start windows and panes at 1, not 0
25+
set -g base-index 1
26+
setw -g pane-base-index 1
1427

15-
# enable activity alerts
28+
# Renumber windows when one is closed
29+
set -g renumber-windows on
30+
31+
# Increase scrollback buffer
32+
set -g history-limit 10000
33+
34+
# Enable activity alerts
1635
setw -g monitor-activity on
1736
set -g visual-activity on
1837

19-
# set -g prefix C-a
20-
# unbind C-b
21-
# bind C-a send-prefix
38+
# ----------------------------
39+
# Key Bindings
40+
# ----------------------------
41+
# Set prefix to Ctrl-a
42+
set -g prefix C-a
43+
unbind C-b
44+
bind C-a send-prefix
45+
46+
# Split panes with | and -
47+
bind | split-window -h -c "#{pane_current_path}"
48+
bind - split-window -v -c "#{pane_current_path}"
49+
50+
# Navigate panes with vim keys
51+
bind h select-pane -L
52+
bind j select-pane -D
53+
bind k select-pane -U
54+
bind l select-pane -R
2255

23-
# set bell-action none
24-
# set-option -g status-left ""
25-
# set-option -g status-right "#S"
26-
# set -g status-bg black
27-
# set -g status-fg white
28-
# setw -g mode-keys vi
56+
# Resize panes with vim keys (repeatable)
57+
bind -r H resize-pane -L 5
58+
bind -r J resize-pane -D 5
59+
bind -r K resize-pane -U 5
60+
bind -r L resize-pane -R 5
2961

30-
# bind ^t last-window
62+
# Reload config with prefix-r
63+
bind r source-file ~/.tmux.conf \; display "Config reloaded!"
3164

32-
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
65+
# ----------------------------
66+
# Initialize TPM (keep at bottom)
67+
# ----------------------------
3368
run '~/.tmux/plugins/tpm/tpm'

home/.tmux/plugins/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)