Merge pull request #94 from thezacharytaylor/feature/current-window-bg-color
Feature: Window BG Color
This commit is contained in:
commit
2ff900dc7a
3 changed files with 23 additions and 5 deletions
18
README.md
18
README.md
|
@ -143,6 +143,15 @@ Values:
|
|||
- all - the entire window part will have the same color
|
||||
- none - the entire window part will have no color
|
||||
|
||||
#### Override the window default colors:
|
||||
```sh
|
||||
set -g @catppuccin_window_default_text "color" # text color
|
||||
set -g @catppuccin_window_default_background "color"
|
||||
```
|
||||
|
||||
Values:
|
||||
- color - a hexadecimal color value
|
||||
|
||||
#### Override the window default text:
|
||||
```sh
|
||||
set -g @catppuccin_window_default_text "#{b:pane_current_path}" # use "#W" for application instead of directory
|
||||
|
@ -159,6 +168,15 @@ Values:
|
|||
- all - the entire window part will have the same color
|
||||
- none - the entire window part will have no color
|
||||
|
||||
#### Override the window current colors:
|
||||
```sh
|
||||
set -g @catppuccin_window_current_color "color" # text color
|
||||
set -g @catppuccin_window_current_background "color"
|
||||
```
|
||||
|
||||
Values:
|
||||
- color - a hexadecimal color value
|
||||
|
||||
#### Override the window current text:
|
||||
```sh
|
||||
set -g @catppuccin_window_current_text "#{b:pane_current_path}" # use "#W" for application instead of directory
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
show_window_current_format() {
|
||||
local number="#I"
|
||||
local color="$thm_orange"
|
||||
local background="$thm_bg"
|
||||
local color=$(get_tmux_option "@catppuccin_window_current_color" "$thm_orange")
|
||||
local background=$(get_tmux_option "@catppuccin_window_current_background" "$thm_bg")
|
||||
local text="$(get_tmux_option "@catppuccin_window_current_text" "#{b:pane_current_path}")" # use #W for application instead of directory
|
||||
local fill="$(get_tmux_option "@catppuccin_window_current_fill" "number")" # number, all, none
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
show_window_default_format() {
|
||||
local number="#I"
|
||||
local color="$thm_blue"
|
||||
local background="$thm_gray"
|
||||
local color=$(get_tmux_option "@catppuccin_window_default_color" "$thm_blue")
|
||||
local background=$(get_tmux_option "@catppuccin_window_default_background" "$thm_gray")
|
||||
local text="$(get_tmux_option "@catppuccin_window_default_text" "#{b:pane_current_path}")" # use #W for application instead of directory
|
||||
local fill="$(get_tmux_option "@catppuccin_window_default_fill" "number")" # number, all, none
|
||||
|
||||
|
||||
local default_window_format=$( build_window_format "$number" "$color" "$background" "$text" "$fill" )
|
||||
|
||||
echo "$default_window_format"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue