|
| 1 | +####################### |
| 2 | +### CUSTOM BINDINGS ### |
| 3 | +####################### |
| 4 | + |
| 5 | +# New prefix is Control + a |
| 6 | +# Recommend to set the CAPS key to Control |
| 7 | +unbind C-b |
| 8 | +set-option -g prefix C-a |
| 9 | +bind-key C-a send-prefix |
| 10 | + |
| 11 | +# Use - and \ (or |) for splitting windows |
| 12 | +# select windows with a mouse or arrows |
| 13 | + |
| 14 | +unbind '"' |
| 15 | +unbind % |
| 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 | +set -g mouse on |
| 21 | +bind - split-window -v |
| 22 | +bind | split-window -h |
| 23 | +bind \\ split-window -h |
| 24 | + |
| 25 | +# Prefix + x or Backspace kills current pane |
| 26 | +# Delete completly stops tmux |
| 27 | +bind x killp |
| 28 | +bind Delete kill-server |
| 29 | +bind BSpace killp |
| 30 | + |
| 31 | +###################### |
| 32 | +### DESIGN CHANGES ### |
| 33 | +###################### |
| 34 | + |
| 35 | +# loud or quiet? |
| 36 | +set -g visual-activity off |
| 37 | +set -g visual-bell off |
| 38 | +set -g visual-silence off |
| 39 | +setw -g monitor-activity off |
| 40 | +set -g bell-action none |
| 41 | + |
| 42 | +# modes |
| 43 | +setw -g clock-mode-colour colour5 |
| 44 | +setw -g mode-style 'fg=colour1 bg=colour18 bold' |
| 45 | + |
| 46 | +# panes |
| 47 | +set -g pane-border-style 'fg=colour19 bg=colour0' |
| 48 | +set -g pane-active-border-style 'bg=colour0 fg=colour9' |
| 49 | + |
| 50 | +# statusbar |
| 51 | +set -g status-position bottom |
| 52 | +set -g status-justify left |
| 53 | +set -g status-style 'bg=colour18 fg=colour137 dim' |
| 54 | +set -g status-left '' |
| 55 | +set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S ' |
| 56 | +set -g status-right-length 50 |
| 57 | +set -g status-left-length 20 |
| 58 | + |
| 59 | +setw -g window-status-current-style 'fg=colour1 bg=colour19 bold' |
| 60 | +setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F ' |
| 61 | + |
| 62 | +setw -g window-status-style 'fg=colour9 bg=colour18' |
| 63 | +setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' |
| 64 | + |
| 65 | +setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold' |
| 66 | + |
| 67 | +# messages |
| 68 | +set -g message-style 'fg=colour232 bg=colour16 bold' |
| 69 | +set -g default-command /usr/bin/zsh |
| 70 | + |
0 commit comments