Includes modular setup, device profile support, and documentation. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
# Set prefix to Ctrl-a
|
|
set -g prefix C-a
|
|
unbind C-b
|
|
bind C-a send-prefix
|
|
|
|
# Enable mouse support
|
|
set -g mouse on
|
|
|
|
# Set 256 color mode
|
|
set -g default-terminal "tmux-256color"
|
|
set-option -ga terminal-overrides ",*:Tc"
|
|
|
|
# Vi mode for copy mode
|
|
setw -g mode-keys vi
|
|
|
|
# Split panes
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
|
|
# Reload config
|
|
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded!"
|
|
|
|
# --- Modern and simple status bar ---
|
|
set -g status-bg colour236
|
|
set -g status-fg colour250
|
|
set -g status-style "bg=colour236,fg=colour250"
|
|
set -g status-left-length 40
|
|
set -g status-right-length 100
|
|
set -g status-left '#[fg=colour33,bg=colour236,bold] #S #[fg=colour250,bg=colour236,nobold]|'
|
|
set -g status-right '#[fg=colour250,bg=colour236,nobold]| #[fg=colour33,bg=colour236]#(date +"%a %d %b %Y") %H:%M #[fg=colour250,bg=colour236,nobold]| #[fg=colour33]#(whoami)@#H'
|
|
|
|
# Clean window titles
|
|
setw -g window-status-format ' #[fg=colour250,bg=colour236]#I:#W#{?window_flags,#[fg=colour208]#{window_flags},} '
|
|
setw -g window-status-current-format ' #[fg=colour234,bg=colour33]#I:#W#{?window_flags,#[fg=colour208]#{window_flags},} '
|
|
setw -g window-status-separator ''
|
|
setw -g window-status-style "bg=colour236,fg=colour250"
|
|
setw -g window-status-current-style "bg=colour33,fg=colour234"
|
|
|
|
# Pane border
|
|
set -g pane-border-style fg=colour238
|
|
set -g pane-active-border-style fg=colour39
|
|
|
|
# Message styling
|
|
set -g message-style bg=colour234,fg=colour39
|
|
set -g message-command-style bg=colour234,fg=colour208
|
|
|
|
# Command prompt styling
|
|
|
|
# Bell
|
|
set -g visual-bell on
|
|
set -g bell-action any
|
|
|
|
# Allow faster command sequences
|
|
set -s escape-time 0
|
|
|
|
# Clipboard integration (requires xclip or wl-clipboard)
|
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -in"
|
|
|
|
# Start window numbering at 1
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|