diff --git a/.gitmodules b/.gitmodules index f537b6b..3a30e4f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,6 @@ [submodule "zsh/.zsh/plugins/zsh-syntax-highlighting"] path = zsh/.zsh/plugins/zsh-syntax-highlighting url = https://github.com/zsh-users/zsh-syntax-highlighting.git +[submodule "tmux/.tmux/plugins/tmux-project"] + path = tmux/.tmux/plugins/tmux-project + url = https://git::@github.com/sei40kr/tmux-project diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 1dd647b..9d69356 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -22,8 +22,9 @@ set -ga update-environment TERM_PROGRAM #=== PLUGINS ===# set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'catppuccin/tmux' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'sei40kr/tmux-project' set-option -g @plugin 'b0o/tmux-autoreload' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' @@ -35,10 +36,6 @@ set -g @catppuccin_window_status_style "none" set -g @catppuccin_pane_status_enabled "off" set -g @catppuccin_pane_border_status "off" -# Configure Online -set -g @online_icon "ok" -set -g @offline_icon "nok" - # status left look and feel set -g status-left-length 100 set -g status-left "" @@ -56,8 +53,8 @@ set -g status-right "" # set -ga status-right "#{?#{e|>=:10,#{battery_percentage}},#{#[bg=#{@thm_red},fg=#{@thm_bg}]},#{#[bg=#{@thm_bg},fg=#{@thm_pink}]}} #{battery_icon} #{battery_percentage} " # set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}, none]│" set -g status-right '#(gitmux "#{pane_current_path}")' -set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}, none]│" -set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_blue}] 󰭦 %Y-%m-%d 󰅐 %H:%M " +# set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}, none]│" +# set -ga status-right "#[bg=#{@thm_bg},fg=#{@thm_blue}] 󰭦 %Y-%m-%d 󰅐 %H:%M " set -g status-position top set -g status-style "bg=#{@thm_bg}" @@ -73,20 +70,21 @@ setw -g pane-border-lines single # window look and feel set -wg automatic-rename on set -g automatic-rename-format "Window" - set -g window-status-format " #I#{?#{!=:#{window_name},Window},: #W,} " set -g window-status-style "bg=#{@thm_bg},fg=#{@thm_rosewater}" set -g window-status-last-style "bg=#{@thm_bg},fg=#{@thm_peach}" set -g window-status-activity-style "bg=#{@thm_red},fg=#{@thm_bg}" set -g window-status-bell-style "bg=#{@thm_red},fg=#{@thm_bg},bold" set -gF window-status-separator "#[bg=#{@thm_bg},fg=#{@thm_overlay_0}]│" - set -g window-status-current-format " #I#{?#{!=:#{window_name},Window},: #W,} " set -g window-status-current-style "bg=#{@thm_peach},fg=#{@thm_bg},bold" # Continuum options set -g @continuum-restore 'on' +# Project options +set -ag @project-base-dirs ,"${HOME}/.dotfiles","${HOME}/Projects:0:2" + # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' diff --git a/tmux/.tmux/plugins/tmux-project b/tmux/.tmux/plugins/tmux-project new file mode 160000 index 0000000..fd6d859 --- /dev/null +++ b/tmux/.tmux/plugins/tmux-project @@ -0,0 +1 @@ +Subproject commit fd6d85973888187dd026e1b507726af56fd96468