Skip to content

Commit

Permalink
make status_justify configurable (#145)
Browse files Browse the repository at this point in the history
* make status_justify configurable

* added README

* moved below status_default

* refactor: pr comments

---------

Co-authored-by: Hamothy <[email protected]>
Co-authored-by: sgoudham <[email protected]>
  • Loading branch information
3 people authored Mar 17, 2024
1 parent 2a3bc9e commit 843946e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion catppuccin.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,11 @@ main() {

# status
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-justify "$status_justify"
set status-bg "${thm_bg}"
set status-justify "left"
set status-left-length "100"
set status-right-length "100"

Expand Down

0 comments on commit 843946e

Please sign in to comment.