From e321a25dabfda6c91301cbc0501eecf453f79b06 Mon Sep 17 00:00:00 2001 From: Connor Deckers Date: Sat, 2 Mar 2024 13:51:49 +1100 Subject: [PATCH] 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. --- README.md | 4 ++++ catppuccin.tmux | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ef5d28..4141042 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/catppuccin.tmux b/catppuccin.tmux index da1e5f4..ecf619e 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -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"