make status_justify configurable (#145)

* make status_justify configurable

* added README

* moved below status_default

* refactor: pr comments

---------

Co-authored-by: Hamothy <58985301+sgoudham@users.noreply.github.com>
Co-authored-by: sgoudham <sgoudham@gmail.com>
This commit is contained in:
David Kaufman 2024-03-17 16:43:29 +01:00 committed by GitHub
parent 2a3bc9ea91
commit 843946e176
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View file

@ -258,6 +258,16 @@ Values:
- icon - only the icon of the module will have color - icon - only the icon of the module will have color
- all - the entire module will have the same 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 ### Pane
```sh ```sh

View file

@ -322,9 +322,11 @@ main() {
# status # status
local status_default=$(get_tmux_option "@catppuccin_status_default" "on") local status_default=$(get_tmux_option "@catppuccin_status_default" "on")
local status_justify=$(get_tmux_option "@catppuccin_status_justify" "left")
set status "$status_default" set status "$status_default"
set status-justify "$status_justify"
set status-bg "${thm_bg}" set status-bg "${thm_bg}"
set status-justify "left"
set status-left-length "100" set status-left-length "100"
set status-right-length "100" set status-right-length "100"