diff --git a/.tmux.conf b/.tmux.conf index 5befa4d..de43e8d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -13,29 +13,33 @@ bind v split-window -h unbind r bind r source-file ~/.tmux.conf; display ".tmux.conf reloaded" +set -g base-index 1 +setw -g pane-base-index 1 +set-option -g renumber-windows on + +set -g mouse on + bind -r h resize-pane -L 5 bind -r j resize-pane -D 5 bind -r k resize-pane -U 5 bind -r l resize-pane -R 5 bind -r m resize-pane -Z -set -g mouse on - # vim bindings setw -g mode-keys vi bind-key -T copy-mode-vi 'v' send-keys -X begin-selection bind-key -T copy-mode-vi 'y' send-keys -X copy-selection unbind -T copy-mode-vi MouseDragEnd1Pane +############################################################ # tmux plugin setup set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'christoomey/vim-tmux-navigator' run '~/.tmux/plugins/tpm/tpm' - +############################################################ # TokyoNight colors for Tmux - set -g mode-style "fg=#7aa2f7,bg=#3b4261" set -g message-style "fg=#7aa2f7,bg=#3b4261" @@ -55,17 +59,15 @@ set -g status-right-length "100" set -g status-left-style NONE set -g status-right-style NONE -set -g status-left "#[fg=#15161e,bg=#7aa2f7,bold] #S #[fg=#7aa2f7,bg=#16161e,nobold,nounderscore,noitalics]" -set -g status-right "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#16161e] #{prefix_highlight} #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %I:%M %p #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#15161e,bg=#7aa2f7,bold] #h " -if-shell '[ "$(tmux show-option -gqv "clock-mode-style")" == "24" ]' { - set -g status-right "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#16161e] #{prefix_highlight} #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d  %H:%M #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#15161e,bg=#7aa2f7,bold] #h " -} +set -g status-left "#[fg=#15161e,bg=#7aa2f7] #S #[fg=#7aa2f7,bg=#16161e,nounderscore,noitalics]" +set -g status-right "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#16161e] #{prefix_highlight} #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] %Y-%m-%d #[fg=#7aa2f7,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#15161e,bg=#7aa2f7] uI:%M %p " setw -g window-status-activity-style "underscore,fg=#a9b1d6,bg=#16161e" setw -g window-status-separator "" setw -g window-status-style "NONE,fg=#a9b1d6,bg=#16161e" setw -g window-status-format "#[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]#[default] #I  #W #F #[fg=#16161e,bg=#16161e,nobold,nounderscore,noitalics]" -setw -g window-status-current-format "#[fg=#16161e,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261,bold] #I  #W #F #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]" +setw -g window-status-current-format "#[fg=#16161e,bg=#3b4261,nobold,nounderscore,noitalics]#[fg=#7aa2f7,bg=#3b4261] #I  #W #F #[fg=#3b4261,bg=#16161e,nobold,nounderscore,noitalics]" + # tmux-plugins/tmux-prefix-highlight support set -g @prefix_highlight_output_prefix "#[fg=#e0af68]#[bg=#16161e]#[fg=#16161e]#[bg=#e0af68]" diff --git a/.zshrc b/.zshrc index c4676f7..fdec0b7 100644 --- a/.zshrc +++ b/.zshrc @@ -115,6 +115,9 @@ alias vi="nvim" alias ls="colorls" alias tr2="tree -a -L 2" alias cls="clear" +alias td="tmux detach " +alias ta="tmux attach -t " +alias tls="tmux ls" export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"