Add tmux plugins & fix pasting
This commit is contained in:
parent
4eef6df57a
commit
6b7150ecd8
|
@ -90,7 +90,7 @@ bind - break-pane
|
||||||
bind _ join-pane
|
bind _ join-pane
|
||||||
|
|
||||||
# reload config without killing server
|
# reload config without killing server
|
||||||
bind r source-file $TMUX_HOME/tmux.conf \; display-message " Config reloaded..".
|
bind r source-file ~/.dotfiles/config/tmux/config \; display-message " Config reloaded..".
|
||||||
bind ^r refresh-client
|
bind ^r refresh-client
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,13 +100,13 @@ bind ^r refresh-client
|
||||||
|
|
||||||
bind Enter copy-mode # enter copy mode
|
bind Enter copy-mode # enter copy mode
|
||||||
bind b list-buffers # list paster buffers
|
bind b list-buffers # list paster buffers
|
||||||
bind p paste-buffer # paste from the top pate buffer
|
bind p paste-buffer # paste from the top paste buffer
|
||||||
bind P choose-buffer # choose which buffer to paste from
|
bind P choose-buffer # choose which buffer to paste from
|
||||||
|
|
||||||
bind -T copy-mode-vi v send -X begin-selection
|
bind -T copy-mode-vi v send -X begin-selection
|
||||||
bind -T copy-mode-vi C-v send -X rectangle-toggle
|
bind -T copy-mode-vi C-v send -X rectangle-toggle
|
||||||
bind -T copy-mode-vi y send -X copy-selection
|
|
||||||
bind -T copy-mode-vi Escape send -X cancel
|
bind -T copy-mode-vi Escape send -X cancel
|
||||||
|
bind -T copy-mode-vi C-g send -X cancel
|
||||||
bind -T copy-mode-vi H send -X start-of-line
|
bind -T copy-mode-vi H send -X start-of-line
|
||||||
bind -T copy-mode-vi L send -X end-of-line
|
bind -T copy-mode-vi L send -X end-of-line
|
||||||
|
|
||||||
|
@ -114,5 +114,9 @@ bind -T copy-mode-vi L send -X end-of-line
|
||||||
########################################
|
########################################
|
||||||
# Local config #
|
# Local config #
|
||||||
########################################
|
########################################
|
||||||
|
set -g @open-editor 'C-e'
|
||||||
|
set -g @open-S 'https://www.duckduckgo.com/'
|
||||||
|
|
||||||
|
source $TMUX_HOME/plugins
|
||||||
if '[ -f $TMUX_HOME/theme ]' 'source $TMUX_HOME/theme'
|
if '[ -f $TMUX_HOME/theme ]' 'source $TMUX_HOME/theme'
|
||||||
if '[ -f ~/.tmux.conf ]' 'source ~/.tmux.conf'
|
if '[ -f ~/.tmux.conf ]' 'source ~/.tmux.conf'
|
||||||
|
|
|
@ -20,6 +20,13 @@
|
||||||
_cache tmuxifier init -
|
_cache tmuxifier init -
|
||||||
${lib.readFile <config/tmux/aliases.zsh>}
|
${lib.readFile <config/tmux/aliases.zsh>}
|
||||||
'';
|
'';
|
||||||
home.xdg.configFile."tmux" = { source = <config/tmux>; recursive = true; };
|
home.xdg.configFile = {
|
||||||
|
"tmux" = { source = <config/tmux>; recursive = true; };
|
||||||
|
"tmux/plugins".text = ''
|
||||||
|
run-shell ${pkgs.tmuxPlugins.copycat}/share/tmux-plugins/copycat/copycat.tmux
|
||||||
|
run-shell ${pkgs.tmuxPlugins.prefix-highlight}/share/tmux-plugins/prefix-highlight/prefix_highlight.tmux
|
||||||
|
run-shell ${pkgs.tmuxPlugins.yank}/share/tmux-plugins/yank/yank.tmux
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,20 +6,20 @@ set -g status-justify centre
|
||||||
set -g status-bg default
|
set -g status-bg default
|
||||||
set -g status-fg colour15
|
set -g status-fg colour15
|
||||||
set -g status-interval 10
|
set -g status-interval 10
|
||||||
set -g status-attr dim
|
# set -g status-attr dim
|
||||||
# set -g status-left '#[fg=colour236]_________________________'
|
# set -g status-left '#[fg=colour236]_________________________'
|
||||||
set -g status-left '#[fg=colour236]―――――――――――――――――――――――――'
|
set -g status-left '#{prefix_highlight}#[fg=colour236]|―――――――――――――――――――|'
|
||||||
# set -g status-right "#[fg=colour236]#{prefix_highlight} #[fg=colour5] #S #[fg=colour236]──"
|
# set -g status-left "#[fg=colour236]#{prefix_highlight} #[fg=colour5] #S #[fg=colour236]──"
|
||||||
# set -g status-right '#[fg=colour236]_________________________'
|
# set -g status-right '#[fg=colour236]_________________________'
|
||||||
set -g status-right '#[fg=colour236]―――――――――――――――――――――――――'
|
set -g status-right '#[fg=colour236]|―――――――――――――――――――――――――|'
|
||||||
set -g status-right-length 12
|
set -g status-right-length 30
|
||||||
set -g status-left-length 12
|
set -g status-left-length 30
|
||||||
|
|
||||||
# The messages
|
# The messages
|
||||||
set -g message-fg colour4
|
# set -g message-fg colour4
|
||||||
set -g message-bg colour237
|
# set -g message-bg colour237
|
||||||
set -g message-command-fg blue
|
# set -g message-command-fg blue
|
||||||
set -g message-command-bg black
|
# set -g message-command-bg black
|
||||||
|
|
||||||
# loud or quiet?
|
# loud or quiet?
|
||||||
set-option -g visual-activity off
|
set-option -g visual-activity off
|
||||||
|
@ -30,31 +30,39 @@ set-option -g bell-action none
|
||||||
|
|
||||||
# The modes
|
# The modes
|
||||||
setw -g clock-mode-colour colour135
|
setw -g clock-mode-colour colour135
|
||||||
setw -g mode-attr bold
|
# setw -g mode-attr bold
|
||||||
setw -g mode-fg colour196
|
# setw -g mode-fg colour196
|
||||||
setw -g mode-bg colour238
|
# setw -g mode-bg colour238
|
||||||
|
|
||||||
# The panes
|
# The panes
|
||||||
set -g pane-border-fg colour235
|
# set -g pane-border-fg colour235
|
||||||
# set -g pane-border-bg default
|
# set -g pane-border-bg default
|
||||||
set -g pane-active-border-fg colour5
|
# set -g pane-active-border-fg colour5
|
||||||
# set -g pane-active-border-bg default
|
# set -g pane-active-border-bg default
|
||||||
|
|
||||||
setw -g window-status-current-fg colour2
|
# setw -g window-status-current-fg colour2
|
||||||
setw -g window-status-current-bg default
|
# setw -g window-status-current-bg default
|
||||||
# setw -g window-status-current-attr none
|
# setw -g window-status-current-attr none
|
||||||
setw -g window-status-current-format ' #W '
|
# setw -g window-status-current-format ' #W '
|
||||||
|
|
||||||
setw -g window-status-fg colour236
|
# setw -g window-status-fg colour236
|
||||||
setw -g window-status-bg default
|
# setw -g window-status-bg default
|
||||||
setw -g window-status-attr none
|
# setw -g window-status-attr none
|
||||||
# setw -g window-status-format '#[fg=colour8] #I #[fg=default]#W '
|
# setw -g window-status-format '#[fg=colour8] #I #[fg=default]#W '
|
||||||
setw -g window-status-format ' #W '
|
setw -g window-status-format ' #W '
|
||||||
|
|
||||||
setw -g window-status-activity-bg default
|
# setw -g window-status-activity-bg default
|
||||||
setw -g window-status-activity-fg colour240
|
# setw -g window-status-activity-fg colour240
|
||||||
setw -g window-status-activity-attr none
|
# setw -g window-status-activity-attr none
|
||||||
|
|
||||||
setw -g window-status-bell-attr bold
|
# setw -g window-status-bell-attr bold
|
||||||
setw -g window-status-bell-fg colour255
|
# setw -g window-status-bell-fg colour255
|
||||||
setw -g window-status-bell-bg colour1
|
# setw -g window-status-bell-bg colour1
|
||||||
|
|
||||||
|
|
||||||
|
# -- PLUGINS -----------------------------
|
||||||
|
|
||||||
|
# tmux-prefix-highlight
|
||||||
|
set -g @prefix_highlight_empty_prompt '-----'
|
||||||
|
set -g @prefix_highlight_prefix_prompt ' C^c #[bg=colour8]'
|
||||||
|
set -g @prefix_highlight_show_copy_mode 'on'
|
||||||
|
|
Loading…
Reference in a new issue