From 5baa3b5cbefbdb24d72c6f3fb6bdea75e15ac29e Mon Sep 17 00:00:00 2001 From: David Kaufman Date: Wed, 28 Feb 2024 16:24:17 +0100 Subject: [PATCH 1/4] make status_justify configurable --- catppuccin.tmux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index be45bb54..736296f8 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -325,7 +325,8 @@ main() { local status_default=$(get_tmux_option "@catppuccin_status_default" "on") set status "$status_default" set status-bg "${thm_bg}" - set status-justify "left" + local status_justify=$(get_tmux_option "@catppuccin_status_justify" "left") + set status-justify "$status_justify" set status-left-length "100" set status-right-length "100" From 3248549def8c6b0b88b860cf19da1c1763bb0b11 Mon Sep 17 00:00:00 2001 From: David Kaufman Date: Tue, 12 Mar 2024 16:56:18 +0100 Subject: [PATCH 2/4] added README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 207235b7..8f6548da 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,16 @@ Values: - icon - only the icon of the module will have color - all - the entire module will have the same color +#### Set the status module justify value: +```sh +set -g @catppuccin_status_justify "left" +``` +Values: +- left +- centre - puts the window list in the relative centre of the available free space +- right +- absolute-centre - uses the centre of the entire horizontal space + ### Pane ```sh From 998242275efb3623ffaa2e1a3f7081a6723dfc83 Mon Sep 17 00:00:00 2001 From: David Kaufman Date: Fri, 15 Mar 2024 17:06:26 +0100 Subject: [PATCH 3/4] moved below status_default --- catppuccin.tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index 644cd49a..b8a6ac57 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -323,9 +323,9 @@ main() { # status local status_default=$(get_tmux_option "@catppuccin_status_default" "on") set status "$status_default" - set status-bg "${thm_bg}" local status_justify=$(get_tmux_option "@catppuccin_status_justify" "left") set status-justify "$status_justify" + set status-bg "${thm_bg}" set status-left-length "100" set status-right-length "100" From 9ce7a7c8ab95d1d207525c8d639f47a4ec9a6d45 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 17 Mar 2024 15:10:21 +0000 Subject: [PATCH 4/4] refactor: pr comments --- catppuccin.tmux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index b8a6ac57..ade93248 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -322,8 +322,9 @@ main() { # status local status_default=$(get_tmux_option "@catppuccin_status_default" "on") - set status "$status_default" local status_justify=$(get_tmux_option "@catppuccin_status_justify" "left") + + set status "$status_default" set status-justify "$status_justify" set status-bg "${thm_bg}" set status-left-length "100"