58 lines
1.4 KiB
Bash
58 lines
1.4 KiB
Bash
# Sethian tmux config
|
|
|
|
# Remap prefix to Ctrl-a (easier on mobile)
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
bind C-a send-prefix
|
|
|
|
# Easy tab management
|
|
bind -n M-t new-window
|
|
bind -n M-w kill-window
|
|
bind -n M-1 select-window -t 0
|
|
bind -n M-2 select-window -t 1
|
|
bind -n M-3 select-window -t 2
|
|
bind -n M-4 select-window -t 3
|
|
bind -n M-5 select-window -t 4
|
|
bind -n M-Left previous-window
|
|
bind -n M-Right next-window
|
|
|
|
# Mouse support (critical for mobile/touch)
|
|
set -g mouse on
|
|
|
|
# Scrollback
|
|
set -g history-limit 50000
|
|
|
|
# Start numbering at 1
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
# Renumber windows on close
|
|
set -g renumber-windows on
|
|
|
|
# Status bar - Sethian dark + orange
|
|
set -g status-style "bg=#1a1a1a,fg=#e0e0e0"
|
|
set -g status-left "#[bg=#D35400,fg=#0a0a0a,bold] #S #[bg=#1a1a1a] "
|
|
set -g status-right "#[fg=#D35400]%H:%M #[fg=#666666]| #[fg=#e0e0e0]%b %d"
|
|
set -g status-left-length 20
|
|
set -g status-right-length 30
|
|
|
|
# Window status
|
|
setw -g window-status-format " #[fg=#888888]#I:#W "
|
|
setw -g window-status-current-format "#[bg=#D35400,fg=#0a0a0a,bold] #I:#W "
|
|
setw -g window-status-separator ""
|
|
|
|
# Pane borders
|
|
set -g pane-border-style "fg=#333333"
|
|
set -g pane-active-border-style "fg=#D35400"
|
|
|
|
# Terminal settings
|
|
set -g default-terminal "tmux-256color"
|
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
|
|
|
# Dvorak-friendly splits (s=horizontal, v=vertical)
|
|
bind s split-window -v
|
|
bind v split-window -h
|
|
|
|
# Reduce escape delay
|
|
set -sg escape-time 10
|