2026-03-28 16:50:34 +00:00
|
|
|
# add C-a as primary prefix, keep C-b as secondary
|
2017-12-10 12:01:30 +00:00
|
|
|
set-option -g prefix C-a
|
2026-03-28 16:50:34 +00:00
|
|
|
set-option -g prefix2 C-b
|
2017-12-10 12:01:30 +00:00
|
|
|
bind-key C-a send-prefix
|
|
|
|
|
|
2017-12-10 12:19:05 +00:00
|
|
|
# start with window 1 (instead of 0)
|
|
|
|
|
set -g base-index 1
|
2026-01-18 17:27:15 +00:00
|
|
|
# also start with 1 for window panes
|
|
|
|
|
setw -g pane-base-index 1
|
2017-12-10 12:19:05 +00:00
|
|
|
|
2025-02-14 14:12:21 +00:00
|
|
|
# renumber windows sequentially after closing any of them
|
|
|
|
|
set -g renumber-windows on
|
|
|
|
|
|
2026-03-28 16:50:34 +00:00
|
|
|
# don't detach when closing a window if other windows remain
|
|
|
|
|
set -g detach-on-destroy off
|
|
|
|
|
|
2017-12-10 12:01:30 +00:00
|
|
|
# reload config file (change file location to your the tmux.conf you want to use)
|
2026-01-18 17:27:15 +00:00
|
|
|
unbind r
|
2017-12-10 12:01:30 +00:00
|
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
|
|
|
|
|
|
# Enable mouse mode (tmux 2.1 and above)
|
|
|
|
|
set -g mouse on
|
2017-12-10 12:19:05 +00:00
|
|
|
|
2026-03-28 16:50:34 +00:00
|
|
|
# Track focus events
|
|
|
|
|
#set-option -g focus-events on
|
|
|
|
|
|
2017-12-10 12:19:05 +00:00
|
|
|
# don't rename windows automatically
|
|
|
|
|
set-option -g allow-rename off
|
2017-12-11 16:19:47 +00:00
|
|
|
|
2026-03-28 16:50:34 +00:00
|
|
|
# Set terminal
|
|
|
|
|
set -g default-terminal "$TERM"
|
|
|
|
|
|
2026-03-22 18:00:10 +00:00
|
|
|
# Allow OSC 8 links
|
|
|
|
|
set -ga terminal-features "*:hyperlinks"
|
|
|
|
|
|
2025-02-14 14:12:21 +00:00
|
|
|
# Tweak status bar styles
|
2026-01-18 17:27:15 +00:00
|
|
|
set -g status-style bg=default,fg='#fdfdd9'
|
|
|
|
|
|
|
|
|
|
# Set status bar length
|
|
|
|
|
set -g status-left-length 40
|
|
|
|
|
set -g status-right-length 60
|
|
|
|
|
|
|
|
|
|
# Center the window list
|
|
|
|
|
set -g status-justify centre
|
|
|
|
|
|
|
|
|
|
# Left side: session name with blue accent
|
|
|
|
|
set -g status-left "#[fg=#1a2938,bg=#8fb4cd,bold] #S #[fg=#8fb4cd,bg=default]\ue0b0"
|
|
|
|
|
|
|
|
|
|
# Right side: multi-segment with transitions
|
|
|
|
|
set -g status-right "#[fg=#6dafb5,bg=default]\ue0b2#[fg=#1a2938,bg=#6dafb5] %H:%M #[fg=#bb98d9,bg=#6dafb5]\ue0b2#[fg=#1a2938,bg=#bb98d9] %d-%b "
|
|
|
|
|
|
|
|
|
|
# Inactive windows (no powerline symbols)
|
|
|
|
|
setw -g window-status-format "#[fg=#2f4656,bg=default] #I #W "
|
|
|
|
|
|
|
|
|
|
# Active window (cyan highlight, no powerline)
|
|
|
|
|
setw -g window-status-current-format "#[fg=#1a2938,bg=#6dafb5,bold] #I #W "
|