Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow customization of status module block edge separators #97

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JefeDavis
Copy link

this change allows you to adjust the edges of the status modules array separate from the modules inside the array

Set the module edge separator

set -g @catppuccin_status_modules_right_separator_left  ""  # default is @catppuccin_status_left_separator
set -g @catppuccin_status_modules_right_separator_right ""  # default is @catppuccin_status_right_separator
set -g @catppuccin_status_modules_left_separator_left   ""  # default is @catppuccin_status_left_separator
set -g @catppuccin_status_modules_left_separator_right  ""  # default is @catppuccin_status_right_separator

Set the module edge colors

set -g @catppuccin_status_modules_right_separator_left_color  "color"  # default is @catppuccin_[module_name]_color
set -g @catppuccin_status_modules_right_separator_right_color "color"  # default is @catppuccin_[module_name]_color
set -g @catppuccin_status_modules_left_separator_left_color   "color"  # default is @catppuccin_[module_name]_color
set -g @catppuccin_status_modules_left_separator_right_color  "color"  # default is @catppuccin_[module_name]_color

additionally i have included a second commit that allows you to adjust the [ current | default ]current_window[ color | background ]

these all have sane defaults and fallback options so this should not effect and existing users
Here is an example

Screenshot 2023-12-04 at 6 01 28 PM

Example Configuration:

set -g @catppuccin_flavour 'mocha'
set -g @catppuccin_window_status_enable "yes"
set -g @catppuccin_window_status_icon_enable "yes"
set -g @catppuccin_window_left_separator "█"
set -g @catppuccin_window_right_separator "█"
set -g @catppuccin_window_number_position "left"
set -g @catppuccin_window_middle_separator "█"

set -g @catppuccin_window_default_fill "number"
 
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text '#W'
set -g @catppuccin_window_default_text "#W"

set -g @catppuccin_status_fill "all"
set -g @catppuccin_status_connect_separator "yes"
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_left_separator "█"
set -g @catppuccin_status_right_separator "█"
set -g @catppuccin_status_modules_left_separator_left  ""
set -g @catppuccin_status_modules_right_separator_right ""
set -g @catppuccin_status_modules_left "session"
set -g @catppuccin_status_modules_right "application date_time"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant