This commit is contained in:
DeveloperDurp 2025-04-07 15:44:59 -05:00
parent 478d728b10
commit 73487ac84b
2 changed files with 16 additions and 2 deletions

View file

@ -15,7 +15,6 @@ set -g mouse on
set -g set-clipboard on
set -g @yank_selection_mouse 'clipboard'
set -g @yank_selection 'clipboard'
set -g status-right "#(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD) "
set -g status-justify centre
set -g detach-on-destroy off
set -g status-interval 3
@ -69,6 +68,15 @@ set -g @plugin 'pschmitt/tmux-ssh-split'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @catppuccin_flavor 'mocha'
set -g @catppuccin_window_status_style "rounded"
set -g @catppuccin_window_text ' #W'
set -g @catppuccin_window_current_text ' #W'
set -g status-left "#[fg=#{@thm_crust},bg=#{@thm_mauve}] #S "
set -g status-right "#[fg=#{@thm_crust},bg=#{@thm_mauve}] #(git rev-parse --abbrev-ref HEAD) "
set -g window-status-format "##I"
set -g window-status-current-format "##I"
# Resurrect
set -g @resurrect-capture-pane-contents 'on'
@ -107,4 +115,10 @@ bind S if-shell -F '#{==:#{session_name},scratch}' {
display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t scratch || tmux new-session -s scratch nvim new'
}
bind N if-shell -F '#{==:#{session_name},notes}' {
detach-client
} {
display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t notes || cd ~/Documents/notes; tmux new-session -s notes nvim Welcome.md'
}
run '~/.tmux/plugins/tpm/tpm'