source -F "#{d:current_file}/themes/catppuccin_#{@catppuccin_flavor}_tmux.conf" %if "#{==:#{@catppuccin_status_background},default}" set -gF @_ctp_status_bg "#{@thm_mantle}" set -gF status-style "bg=#{@_ctp_status_bg},fg=#{@thm_fg}" %hidden CTP_MESSAGE_BACKGROUND="#{@thm_surface_0}" %elif "#{==:#{@catppuccin_status_background},none}" set -g status-style "default" set -g @_ctp_status_bg "none" %hidden CTP_MESSAGE_BACKGROUND="default" %else # Treat @catppuccin_status_background as a format string. set -gF status-style "bg=#{E:@catppuccin_status_background},fg=#{@thm_fg}" set -gF @_ctp_status_bg "#{E:@catppuccin_status_background}" %hidden CTP_MESSAGE_BACKGROUND="#{E:@catppuccin_status_background}" %endif source -F "#{d:current_file}/status/application.conf" source -F "#{d:current_file}/status/battery.conf" source -F "#{d:current_file}/status/clima.conf" source -F "#{d:current_file}/status/cpu.conf" source -F "#{d:current_file}/status/date_time.conf" source -F "#{d:current_file}/status/directory.conf" source -F "#{d:current_file}/status/gitmux.conf" source -F "#{d:current_file}/status/host.conf" source -F "#{d:current_file}/status/kube.conf" source -F "#{d:current_file}/status/load.conf" source -F "#{d:current_file}/status/pomodoro_plus.conf" source -F "#{d:current_file}/status/session.conf" source -F "#{d:current_file}/status/uptime.conf" source -F "#{d:current_file}/status/user.conf" source -F "#{d:current_file}/status/weather.conf" # messages set -gF message-style "fg=#{@thm_sky},bg=$CTP_MESSAGE_BACKGROUND,align=centre" set -gF message-command-style "fg=#{@thm_sky},bg=$CTP_MESSAGE_BACKGROUND,align=centre" # menu %if "#{>=:#{version},3.4}" set -gF menu-selected-style "#{E:@catppuccin_menu_selected_style}" %endif # panes set -wgF pane-active-border-style "#{E:@catppuccin_pane_active_border_style}" set -wgF pane-border-style "#{E:@catppuccin_pane_border_style}" %if "#{==:#{@catppuccin_pane_status_enabled},yes}" # "internal" variables are kept as @_ctp_p_.* # and then unset at the end. set -gq @_ctp_p_left "" # the content on the left, usually a separator set -gq @_ctp_p_middle "" set -gq @_ctp_p_right "" set -gq @_ctp_p_number "" set -gq @_ctp_p_text "" %if "#{==:#{@catppuccin_pane_default_fill},none}" set -g @_ctp_p_left \ "#[fg=#{@thm_surface_0},bg=default]#{@catppuccin_pane_left_separator}" set -g @_ctp_p_middle \ "#[fg=#{@thm_fg},bg=#{@thm_surface_0}]#{@catppuccin_pane_middle_separator}" set -g @_ctp_p_right \ "#[fg=#{@thm_surface_0},bg=default]#{@catppuccin_pane_right_separator}" set -g @_ctp_p_number \ "#[fg=#{@thm_fg},bg=#{@thm_surface_0}]##{pane_index}" set -g @_ctp_p_text \ "#[fg=#{@thm_fg},bg=#{@thm_surface_0}]#{E:@catppuccin_pane_default_text}" %elif "#{==:#{@catppuccin_pane_default_fill},all}" set -g @_ctp_p_left \ "#[fg=#{E:@catppuccin_pane_color},bg=default]#{@catppuccin_pane_left_separator}" set -g @_ctp_p_middle \ "#[fg=#{E:@catppuccin_pane_color},bg=#{E:@catppuccin_pane_background_color}]#{@catppuccin_pane_middle_separator}" set -g @_ctp_p_right \ "#[fg=#{E:@catppuccin_pane_color},bg=default]#{@catppuccin_pane_right_separator}" set -g @_ctp_p_number \ "#[fg=#{E:@catppuccin_pane_background_color},bg=#{E:@catppuccin_pane_color}]##{pane_index}" set -g @_ctp_p_text \ "#[fg=#{E:@catppuccin_pane_background_color},bg=#{E:@catppuccin_pane_color}]#{E:@catppuccin_pane_default_text}" %elif "#{==:#{@catppuccin_pane_default_fill},number}" %if "#{==:#{@catppuccin_pane_number_position},left}" set -g @_ctp_p_left \ "#[fg=#{E:@catppuccin_pane_color},bg=default]#{@catppuccin_pane_left_separator}" set -g @_ctp_p_right \ "#[fg=#{E:@catppuccin_pane_background_color},bg=default]#{@catppuccin_pane_right_separator}" %else set -g @_ctp_p_left \ "#[fg=#{E:@catppuccin_pane_background_color},bg=default]#{@catppuccin_pane_left_separator}" set -g @_ctp_p_right \ "#[fg=#{E:@catppuccin_pane_color},bg=default]#{@catppuccin_pane_right_separator}" %endif set -g @_ctp_p_middle \ "#[fg=#{E:@catppuccin_pane_color},bg=#{E:@catppuccin_pane_background_color}]#{@catppuccin_pane_middle_separator}" set -g @_ctp_p_number \ "#[fg=#{E:@catppuccin_pane_background_color},bg=#{E:@catppuccin_pane_color}]##{pane_index}" set -g @_ctp_p_text \ "#[fg=#{E:@catppuccin_pane_color},bg=#{E:@catppuccin_pane_background_color}]#{E:@catppuccin_pane_default_text}" %endif %if "#{==:#{@catppuccin_pane_number_position},left}" set -wgF pane-border-format \ "#{E:@_ctp_p_left}#{E:@_ctp_p_number}#{E:@_ctp_p_middle} #{E:@_ctp_p_text}#{E:@_ctp_p_right}" %else set -wgF pane-border-format \ "#{E:@_ctp_p_left}#{E:@_ctp_p_text} #{E:@_ctp_p_middle}#{E:@_ctp_p_number}#{E:@_ctp_p_right}" %endif set -ug @_ctp_p_left set -ug @_ctp_p_middle set -ug @_ctp_p_right set -ug @_ctp_p_number set -ug @_ctp_p_text %endif # popups %if "#{>=:#{version},3.4}" set -wF popup-style "bg=#{@thm_bg},fg=#{@thm_fg}" set -wF popup-border-style "fg=#{@thm_surface_1}" %endif %if "#{==:#{@catppuccin_window_status_style},basic}" set -gq @catppuccin_window_left_separator "█" set -gq @catppuccin_window_middle_separator "█" set -gq @catppuccin_window_right_separator "█ " %elif "#{==:#{@catppuccin_window_status_style},rounded}" set -gq @catppuccin_window_left_separator "" set -gq @catppuccin_window_middle_separator "█" set -gq @catppuccin_window_right_separator " " %elif "#{==:#{@catppuccin_window_status_style},slanted}" set -gq @catppuccin_window_left_separator "█" set -gq @catppuccin_window_middle_separator "█" set -gq @catppuccin_window_right_separator "█ " %endif set -ogqF @catppuccin_window_current_left_separator "#{@catppuccin_window_left_separator}" set -ogqF @catppuccin_window_current_middle_separator "#{@catppuccin_window_middle_separator}" set -ogqF @catppuccin_window_current_right_separator "#{@catppuccin_window_right_separator}" # window status %if "#{!=:#{@catppuccin_window_status_style},none}" set -gF window-status-activity-style "bg=#{@thm_yellow},fg=#{@thm_crust}" set -gF window-status-bell-style "bg=#{@thm_yellow},fg=#{@thm_crust}" # "internal" variables are kept as @_ctp_w_.* # and then unset at the end. set -gq @_ctp_w_left "" # the content on the left, usually a separator set -gq @_ctp_w_middle "" set -gq @_ctp_w_right "" set -gq @_ctp_w_number "" set -gq @_ctp_w_text "" %if "#{==:#{@catppuccin_window_status},icon}" set -gqF @_ctp_w_flags "#{E:@catppuccin_window_flags_icon_format} " %elif "#{==:#{@catppuccin_window_status},text}" set -gq @_ctp_w_flags "#F" %else set -gq @_ctp_w_flags "" %endif %if "#{==:#{@catppuccin_window_default_fill},none}" set -g @_ctp_w_left \ "#[fg=#{@thm_surface_0},bg=default]#{@catppuccin_window_left_separator}" set -g @_ctp_w_middle \ "#[fg=#{@thm_surface_0},bg=default]#{@catppuccin_window_middle_separator}" set -g @_ctp_w_right \ "#[fg=#{@thm_surface_0},bg=default]#{@catppuccin_window_right_separator}" set -g @_ctp_w_number \ "#[fg=#{@thm_fg},bg=#{@thm_surface_0}]##I" set -g @_ctp_w_text \ "#[fg=#{@thm_fg},bg=#{@thm_surface_0}]#{@catppuccin_window_default_text}" %else # The left and middle separators are the same between "all" and "number". # The number is the same as well. set -g @_ctp_w_left \ "#[fg=#{E:@catppuccin_window_default_background},bg=default]#{@catppuccin_window_left_separator}" set -g @_ctp_w_middle \ "#[fg=#{E:@catppuccin_window_default_background},bg=#{E:@catppuccin_window_default_color}]#{@catppuccin_window_middle_separator}" set -g @_ctp_w_number \ "#[fg=#{@thm_crust},bg=#{E:@catppuccin_window_default_background}]##I" %if "#{==:#{@catppuccin_window_default_fill},all}" set -g @_ctp_w_right \ "#[fg=#{E:@catppuccin_window_default_background},bg=default]#{@catppuccin_window_right_separator}" set -g @_ctp_w_text \ "#[fg=#{@thm_crust},bg=#{E:@catppuccin_window_default_background}]#{@catppuccin_window_default_text}" %elif "#{==:#{@catppuccin_window_default_fill},number}" set -g @_ctp_w_text \ "#[fg=#{@thm_fg},bg=#{E:@catppuccin_window_default_color}]#{@catppuccin_window_default_text}" %if "#{==:#{@catppuccin_window_number_position},left}" set -g @_ctp_w_left \ "#[fg=#{E:@catppuccin_window_default_background},bg=default]#{@catppuccin_window_left_separator}" set -g @_ctp_w_right \ "#[fg=#{E:@catppuccin_window_default_color},bg=default]#{@catppuccin_window_right_separator}" %else set -g @_ctp_w_left \ "#[fg=#{E:@catppuccin_window_default_color},bg=default]#{@catppuccin_window_left_separator}" set -g @_ctp_w_right \ "#[fg=#{E:@catppuccin_window_default_background},bg=default]#{@catppuccin_window_right_separator}" %endif %endif %endif set -agq @_ctp_w_text "#{@_ctp_w_flags}" %if "#{==:#{@catppuccin_window_number_position},left}" set -gF window-status-format \ "#{E:@_ctp_w_left}#{E:@_ctp_w_number}#{E:@_ctp_w_middle}#{E:@_ctp_w_text}#{E:@_ctp_w_right}" %else set -gF window-status-format \ "#{E:@_ctp_w_left}#{E:@_ctp_w_text}#{E:@_ctp_w_middle}#{E:@_ctp_w_number}#{E:@_ctp_w_right}" %endif # ======================================= # And do the same for the current window. # ======================================= %if "#{==:#{@catppuccin_window_current_fill},none}" set -g @_ctp_w_left \ "#[fg=#{E:@catppuccin_window_current_color},bg=default]#{@catppuccin_window_current_left_separator}" set -g @_ctp_w_middle \ "#[fg=#{E:@catppuccin_window_current_color},bg=default]#{@catppuccin_window_current_middle_separator}" set -g @_ctp_w_right \ "#[fg=#{E:@catppuccin_window_current_color},bg=default]#{@catppuccin_window_current_right_separator}" set -g @_ctp_w_number \ "#[fg=#{@thm_fg},bg=#{E:@catppuccin_window_current_color}]##I" set -g @_ctp_w_text \ "#[fg=#{@thm_fg},bg=#{E:@catppuccin_window_current_color}]#{@catppuccin_window_current_text}" %else # The left and middle separators are the same between "all" and "number". # The number is the same as well. set -g @_ctp_w_left \ "#[fg=#{E:@catppuccin_window_current_background},bg=default]#{@catppuccin_window_current_left_separator}" set -g @_ctp_w_middle \ "#[fg=#{E:@catppuccin_window_current_background},bg=#{E:@catppuccin_window_current_color}]#{@catppuccin_window_current_middle_separator}" set -g @_ctp_w_number \ "#[fg=#{@thm_crust},bg=#{E:@catppuccin_window_current_background}]##I" %if "#{==:#{@catppuccin_window_current_fill},all}" set -g @_ctp_w_right \ "#[fg=#{E:@catppuccin_window_current_background},bg=default]#{@catppuccin_window_current_right_separator}" set -g @_ctp_w_text \ "#[fg=#{@thm_crust},bg=#{E:@catppuccin_window_current_background}]#{@catppuccin_window_current_text}" %elif "#{==:#{@catppuccin_window_current_fill},number}" set -g @_ctp_w_text \ "#[fg=#{@thm_fg},bg=#{E:@catppuccin_window_current_color}]#{@catppuccin_window_current_text}" %if "#{==:#{@catppuccin_window_number_position},left}" set -g @_ctp_w_left \ "#[fg=#{E:@catppuccin_window_current_background},bg=default]#{@catppuccin_window_current_left_separator}" set -g @_ctp_w_right \ "#[fg=#{E:@catppuccin_window_current_color},bg=default]#{@catppuccin_window_current_right_separator}" %else set -g @_ctp_w_left \ "#[fg=#{E:@catppuccin_window_current_color},bg=default]#{@catppuccin_window_current_left_separator}" set -g @_ctp_w_right \ "#[fg=#{E:@catppuccin_window_current_background},bg=default]#{@catppuccin_window_current_right_separator}" %endif %endif %endif set -agq @_ctp_w_text "#{@_ctp_w_flags}" %if "#{==:#{@catppuccin_window_number_position},left}" set -gF window-status-current-format \ "#{E:@_ctp_w_left}#{E:@_ctp_w_number}#{E:@_ctp_w_middle}#{E:@_ctp_w_text}#{E:@_ctp_w_right}" %else set -gF window-status-current-format \ "#{E:@_ctp_w_left}#{E:@_ctp_w_text}#{E:@_ctp_w_middle}#{E:@_ctp_w_number}#{E:@_ctp_w_right}" %endif # Cleanup (unset) all of the variables to cleanup. set -ug @_ctp_w_left set -ug @_ctp_w_middle set -ug @_ctp_w_right set -ug @_ctp_w_number set -ug @_ctp_w_text set -ug @_ctp_w_flags %endif # modes set -wF mode-style "fg=#{@thm_pink},bg=#{@thm_surface_2},bold" set -wF clock-mode-colour "#{@thm_blue}"