Last active
August 28, 2021 04:27
-
-
Save na0x2c6/3d825d0d0266735bdd882dc9edb1dce4 to your computer and use it in GitHub Desktop.
a simple tmux conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prefix | |
set -g prefix C-q | |
unbind C-b | |
# keystroke delay | |
set -sg escape-time 1 | |
# to reload | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# C-q*2 = send q | |
bind C-q send-prefix | |
bind v split-window -h | |
bind s split-window -v | |
# vim keybind | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
bind < resize-pane -L 5 | |
bind - resize-pane -D 5 | |
bind + resize-pane -U 5 | |
bind > resize-pane -R 5 | |
bind S choose-tree -s | |
# for mouse | |
# setw -g mode-mouse on | |
# set -g mouse-select-pane on | |
# set -g mouse-resize-pane on | |
# set -g mouse-select-window on | |
setw -g mode-keys vi | |
# refs: https://github.com/arcticicestudio/nord-tmux/blob/develop/src/nord.conf | |
#+---------+ | |
#+ Options + | |
#+---------+ | |
set -g status-interval 15 | |
set -g status on | |
#+--------+ | |
#+ Status + | |
#+--------+ | |
#+--- Layout ---+ | |
set -g status-justify left | |
#+--- Colors ---+ | |
set -g status-style bg=black,fg=white,none | |
#+-------+ | |
#+ Panes + | |
#+-------+ | |
set -g pane-border-style bg=black,fg=black | |
set -g pane-active-border-style bg=black,fg=brightblack | |
set -g display-panes-colour black | |
set -g display-panes-active-colour brightblack | |
#+------------+ | |
#+ Clock Mode + | |
#+------------+ | |
setw -g clock-mode-colour cyan | |
#+----------+ | |
#+ Messages + | |
#+---------+ | |
set -g message-style fg=cyan,bg=brightblack | |
set -g message-command-style fg=cyan,bg=brightblack | |
# status | |
set-option -g status-right-length 140 | |
set-option -g status-right "#[fg=white,bg=default]LA: #(LANG=C uptime | perl -nlae 'print join(\" \", @F[-3..-1])')" | |
# for clipboard on Mac | |
# bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" | |
# bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy" | |
# for clipboard on Linux | |
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "xsel -ip && xsel -op | xsel -ib" | |
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "xsel -ip && xsel -op | xsel -ib" | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'Morantron/tmux-fingers' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
# Other examples: | |
# set -g @plugin 'github_username/plugin_name' | |
# set -g @plugin '[email protected]/user/plugin' | |
# set -g @plugin '[email protected]/user/plugin' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run -b '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment