dotfiles/tmux/.tmux.conf
2026-05-20 20:42:39 +02:00

35 lines
1011 B
Bash

# Basic tmux configuration
# Mouse support (scroll, resize panes, select panes)
set -g mouse on
# Terminal type for 256 color support
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q]'
# Scrollback buffer
set -g history-limit 10000
# Start window numbering at 1 (instead of 0)
set -g base-index 1
set -g pane-base-index 1
# Key bindings
bind | split-window -h
bind - split-window -v
bind r source-file ~/.tmux.conf \; display "Reloaded config!"
# Status bar: short hostname, session name, window list (Gruvbox Dark Hard)
set -g status-bg "#1d2021"
set -g status-fg "#ebdbb2"
set -g status-left "#[fg=#1d2021,bg=#d3869b,bold] #S "
set -g status-right "#[fg=#ebdbb2,bg=#3c3836] #H "
set -g window-status-current-format "#[fg=#1d2021,bg=#fe8019,bold] #I:#W "
set -g window-status-format "#[fg=#a89984,bg=#3c3836] #I:#W "
set -g status-interval 5
# Activity monitoring
set -g monitor-activity on
set -g visual-activity on