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:
parent
2a3bc9ea91
commit
843946e176
2 changed files with 13 additions and 1 deletions
10
README.md
10
README.md
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue