Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions catppuccin_options_tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ set -ogq @catppuccin_status_middle_separator ""
set -ogq @catppuccin_status_right_separator "█"
set -ogq @catppuccin_status_connect_separator "yes" # yes, no
set -ogq @catppuccin_status_fill "icon"
set -ogq @catppuccin_status_module_bg_color "#{@thm_surface_0}"
8 changes: 8 additions & 0 deletions status/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ set -g @catppuccin_[module_name]_icon "icon"
set -g @catppuccin_[module_name]_color "color"
```

#### Override the specific module background color

##### (NB: Only when `@catppuccin_status_fill` is `icon`)

```sh
set -g @catppuccin_status_[module_name]_bg_color "color"
```

#### Override the specific module text

```sh
Expand Down
10 changes: 8 additions & 2 deletions utils/status_module.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
set -gqF @_ctp_connect_style \
"#{?#{==:#{@catppuccin_status_connect_separator},yes},,#[bg=default]}"

%if "#{==:#{@catppuccin_status_${MODULE_NAME}_bg_color},}"
set -gqF @_ctp_module_bg_color "#{@catppuccin_status_module_bg_color}"
%else
set -gqF @_ctp_module_bg_color "#{@catppuccin_status_${MODULE_NAME}_bg_color}"
%endif

set -gF "@catppuccin_status_${MODULE_NAME}" \
"#[fg=#{@catppuccin_${MODULE_NAME}_color},nobold,nounderscore,noitalics]#{@_ctp_connect_style}#{@catppuccin_status_left_separator}"

Expand All @@ -16,15 +22,15 @@ set -agF "@catppuccin_status_${MODULE_NAME}" "#[fg=#{@catppuccin_${MODULE_NAME}_
# If _only_ the icon should be filled in, then change the background
# to catppuccin_status_default_background, and the foreground to crust. Otherwise leave the formatting as-is.
%if "#{==:#{@catppuccin_status_fill},icon}"
set -agF "@catppuccin_status_${MODULE_NAME}" "bg=#{E:@_ctp_status_bg}]#{@catppuccin_status_middle_separator}#[fg=#{@thm_fg}] "
set -agF "@catppuccin_status_${MODULE_NAME}" "bg=#{@_ctp_module_bg_color}]#{@catppuccin_status_middle_separator}#[fg=#{@thm_fg}] "
%else
set -agF "@catppuccin_status_${MODULE_NAME}" "]#{@catppuccin_status_middle_separator}#[fg=#{@thm_crust}]"
%endif

set -ag "@catppuccin_status_${MODULE_NAME}" "#{E:@catppuccin_${MODULE_NAME}_text}"

%if "#{==:#{@catppuccin_status_fill},icon}"
set -agF "@catppuccin_status_${MODULE_NAME}" "#[fg=#{E:@_ctp_status_bg}]"
set -agF "@catppuccin_status_${MODULE_NAME}" "#[fg=#{@_ctp_module_bg_color}]"
%else
set -agF "@catppuccin_status_${MODULE_NAME}" "#[fg=#{@catppuccin_${MODULE_NAME}_color}]"
%endif
Expand Down
Loading