feat(config): allow status bar to be disabled by default

This allows setting the status bar visibility on load, rather than
forcing it to be on by default. It also prevents flashing from the
status bar if the status bar is disabled in config after plugins are
loaded.
This commit is contained in:
Connor Deckers 2024-03-02 13:51:49 +11:00
parent a0119d2528
commit e321a25dab
2 changed files with 6 additions and 1 deletions

View file

@ -207,6 +207,10 @@ set -g @catppuccin_pane_active_border_style "fg=red" # Use a value compatible wi
### Status
#### Set the default status bar visibility
```sh
set -g @catppuccin_status_default "off" # defaults to "on"
```
#### Set the status module left separator:
```sh

View file

@ -322,7 +322,8 @@ main() {
local modules_pane_path=$PLUGIN_DIR/pane
# status
set status "on"
local status_default=$(get_tmux_option "@catppuccin_status_default" "on")
set status "$status_default"
set status-bg "${thm_bg}"
set status-justify "left"
set status-left-length "100"