Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions home/.tmux.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Set prefix to ctrl-a, freeing up ctrl-b
set-option -g prefix C-a
# Set prefix to ctrl-space, freeing up ctrl-a for shell line-start
set-option -g prefix C-Space
unbind-key C-b
bind-key C-a send-prefix
unbind-key C-a
bind-key C-Space send-prefix

### Settings

Expand All @@ -16,6 +17,11 @@ if-shell 'infocmp -x tmux-256color >/dev/null 2>&1' \
# Truecolor support for common terminal types
set-option -as terminal-features ',xterm-256color:RGB,screen-256color:RGB,tmux-256color:RGB'

# Extended key sequences (CSI u) — forwards Shift+Enter etc. to apps
set-option -g extended-keys always
set-option -s extended-keys-format csi-u
set-option -as terminal-features ',xterm-256color:extkeys,tmux-256color:extkeys'

# Keep a lot of scrollback buffer
set-option -g history-limit 50000

Expand Down Expand Up @@ -59,7 +65,7 @@ set-option -g allow-passthrough on
bind-key r source-file ~/.tmux.conf \; display-message "Reloaded tmux.conf"

# Toggle last active window
bind-key C-a last-window
bind-key C-Space last-window

## Windows

Expand Down Expand Up @@ -93,8 +99,10 @@ bind-key -r L resize-pane -R 5

# Begin selection
bind-key -T copy-mode-vi v send -X begin-selection
# Select line
bind-key -T copy-mode-vi V send -X select-line
# Toggle rectangle selection
bind-key -T copy-mode-vi V send -X rectangle-toggle
bind-key -T copy-mode-vi C-v send -X rectangle-toggle
# Yank selection and exit copy mode
bind-key -T copy-mode-vi y send -X copy-selection-and-cancel

Expand Down Expand Up @@ -139,7 +147,7 @@ set-window-option -g window-status-separator ""
set-window-option -g window-status-style "fg=colour8"

# Active window title (base0B green bg, consistent across base16/base24)
set-window-option -g window-status-current-style "bg=colour2,fg=colour7,bold"
set-window-option -g window-status-current-style "bg=colour2,fg=colour0,bold"

# Activity and bell indicators
set-window-option -g window-status-activity-style "fg=colour3,bold"
Expand Down