|
| 1 | +#unbind C-b |
| 2 | +set -g prefix C-a |
| 3 | +set -sg escape-time 1 |
| 4 | +set -g base-index 1 |
| 5 | +setw -g pane-base-index 1 |
| 6 | +bind r source-file ~/.tmux.conf \; display "Reloaded!" |
| 7 | +bind C-a send-prefix |
| 8 | +bind | split-window -h -c "#{pane_current_path}" |
| 9 | +bind - split-window -v -c "#{pane_current_path}" |
| 10 | +bind-key c new-window -c "#{pane_current_path}" |
| 11 | +bind h select-pane -L |
| 12 | +bind j select-pane -D |
| 13 | +bind k select-pane -U |
| 14 | +bind l select-pane -R |
| 15 | +bind -r H resize-pane -L 5 |
| 16 | +bind -r J resize-pane -D 5 |
| 17 | +bind -r K resize-pane -U 5 |
| 18 | +bind -r L resize-pane -R 5 |
| 19 | +bind a set-window-option synchronize-panes |
| 20 | + |
| 21 | +# copy-mod; |
| 22 | +bind P paste-buffer |
| 23 | +bind-key -T copy-mode-vi v send-keys -X begin-selection |
| 24 | +bind-key -T copy-mode-vi y send-keys -X copy-selection |
| 25 | +bind-key -T copy-mode-vi r send-keys -X rectangle-toggle |
| 26 | + |
| 27 | +bind D source-file ~/.tmux/dev.conf |
| 28 | +# mouse toggle for synchronize-panes |
| 29 | +# bind m run-shell "if [[ tmux showw | grep mode-mouse.*on ]]; then toggle=off; else export toggle=on; fi; tmux display-message \"Mouse: \$toggle\"; tmux setw mode-mouse \$toggle &> /dev/null; for cmd in mouse-select-pane mouse-resize-pane mouse-select-window; do tmux set -g \$cmd \$toggle &> /dev/null; done;" |
| 30 | + |
| 31 | +#tmux 2.1 |
| 32 | +setw -g mouse off |
| 33 | +#tmux <2.1 |
| 34 | +#setw -g mode-mouse off |
| 35 | +#set -g mouse-select-pane off |
| 36 | +#set -g mouse-resize-pane off |
| 37 | +#set -g mouse-select-window off |
| 38 | +set -g default-terminal "screen-256color" |
| 39 | + |
| 40 | +# color variables |
| 41 | +color_orange="colour166" # 208, 166 |
| 42 | +color_main="$color_orange" |
| 43 | + |
| 44 | +# mode |
| 45 | +set -g mode-style 'fg=colour196,bg=colour238' |
| 46 | +setw -g clock-mode-colour colour135 |
| 47 | + |
| 48 | +# panes |
| 49 | + |
| 50 | +set -g pane-border-style 'fg=green,bg=black' |
| 51 | +set -g pane-active-border-style "fg=white,bg=black" |
| 52 | + |
| 53 | +# general status bar settings |
| 54 | +set -g status on |
| 55 | +set -g status-interval 5 |
| 56 | +set -g status-position bottom |
| 57 | +set -g status-justify centre |
| 58 | +set -g status-left-length 20 |
| 59 | +set -g status-right-length 50 |
| 60 | + |
| 61 | +set -g status-style 'fg=white,bg=black,dim' |
| 62 | +# set -g status-format '#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P' |
| 63 | + |
| 64 | +set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" |
| 65 | +set -g status-right "#[fg=cyan]%d %b %R" |
| 66 | + |
| 67 | +# set -g status-interval 61 |
| 68 | +# set -g status-justify centre |
| 69 | +# set -g status-attr dim |
| 70 | +# set -g status-right-length 50 |
| 71 | +# set -g status-left-length 20 |
| 72 | +#set -g status-utf8 on |
| 73 | + |
| 74 | +# window status |
| 75 | +setw -g window-status-style 'fg=cyan,bg=default' |
| 76 | +setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' |
| 77 | +setw -g window-status-current-style 'fg=yellow,bg=red,bright' |
| 78 | + |
| 79 | +setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W " |
| 80 | +setw -g window-status-bell-style 'fg=colour1,bg=colour255,bold' |
| 81 | + |
| 82 | +# mesage |
| 83 | +set -g message-style 'fg=colour232,bg=colour166,bold' |
| 84 | + |
| 85 | +setw -g monitor-activity on |
| 86 | +set -g visual-activity on |
| 87 | + |
| 88 | +# sound |
| 89 | +set -g visual-activity off |
| 90 | +set -g visual-bell off |
| 91 | +set -g visual-silence off |
| 92 | +set -g bell-action none |
| 93 | +setw -g monitor-activity off |
| 94 | + |
| 95 | +# List of plugins |
| 96 | + |
| 97 | +# Other examples: |
| 98 | +# set -g @plugin 'github_username/plugin_name' |
| 99 | +# set -g @plugin 'git@github.com/user/plugin' |
| 100 | +# set -g @plugin 'git@bitbucket.com/user/plugin' |
| 101 | + |
| 102 | +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) |
| 103 | +set -g @resurrect-capture-pane-contents 'on' |
| 104 | +set -g @continuum-restore 'on' |
| 105 | +set -g @continuum-boot 'on' |
| 106 | +set -g @resurrect-strategy-vim 'session' |
| 107 | + |
| 108 | +set -g @plugin 'tmux-plugins/tpm' |
| 109 | +set -g @plugin 'tmux-plugins/tmux-sensible' |
| 110 | +set -g @plugin 'tmux-plugins/tmux-resurrect' |
| 111 | +set -g @plugin 'tmux-plugins/tmux-continuum' |
| 112 | +set -g @plugin 'tmux-plugins/tmux-logging' |
| 113 | +# run '~/.tmux/plugins/tpm/tpm' |
0 commit comments