|
| 1 | +# Keep the default prefix |
| 2 | +set-option -g prefix C-b |
| 3 | + |
| 4 | +# Add Ctrl-a as a second prefix |
| 5 | +set-option -g prefix2 C-a |
| 6 | + |
| 7 | +# Ensure that pressing Ctrl-a twice sends the prefix to the inner application |
| 8 | +# (Useful for nested tmux sessions or programs that use Ctrl-a) |
| 9 | +bind-key C-a send-prefix -2 |
| 10 | + |
| 11 | +# split panes using | and - |
| 12 | +bind | split-window -h |
| 13 | +bind - split-window -v |
| 14 | + |
| 15 | +# switch panes using Alt-arrow without prefix |
| 16 | +bind -n M-Left select-pane -L |
| 17 | +bind -n M-Right select-pane -R |
| 18 | +bind -n M-Up select-pane -U |
| 19 | +bind -n M-Down select-pane -D |
| 20 | + |
| 21 | +# Enable mouse control (clickable windows, panes, resizable panes) |
| 22 | +set -g mouse on |
| 23 | + |
| 24 | +# DESIGN TWEAKS |
| 25 | + |
| 26 | +# don't do anything when a 'bell' rings |
| 27 | +set -g visual-activity off |
| 28 | +set -g visual-bell off |
| 29 | +set -g visual-silence off |
| 30 | +setw -g monitor-activity off |
| 31 | +set -g bell-action none |
| 32 | + |
| 33 | +# clock mode |
| 34 | +setw -g clock-mode-colour yellow |
| 35 | + |
| 36 | +# copy mode |
| 37 | +setw -g mode-style 'fg=black bg=red bold' |
| 38 | + |
| 39 | +# panes |
| 40 | +set -g pane-border-style 'fg=red' |
| 41 | +set -g pane-active-border-style 'fg=yellow' |
| 42 | + |
| 43 | +# statusbar |
| 44 | +set -g status-position bottom |
| 45 | +set -g status-justify left |
| 46 | +set -g status-style 'fg=red' |
| 47 | + |
| 48 | +set -g status-left '' |
| 49 | +set -g status-left-length 10 |
| 50 | + |
| 51 | +set -g status-right-style 'fg=black bg=yellow' |
| 52 | +set -g status-right '%Y-%m-%d %H:%M ' |
| 53 | +set -g status-right-length 50 |
| 54 | + |
| 55 | +setw -g window-status-current-style 'fg=black bg=red' |
| 56 | +setw -g window-status-current-format ' #I #W #F ' |
| 57 | + |
| 58 | +setw -g window-status-style 'fg=red bg=black' |
| 59 | +setw -g window-status-format ' #I #[fg=white]#W #[fg=yellow]#F ' |
| 60 | + |
| 61 | +setw -g window-status-bell-style 'fg=yellow bg=red bold' |
| 62 | + |
| 63 | +# messages |
| 64 | +set -g message-style 'fg=yellow bg=red bold' |
0 commit comments