Skip to content

Commit

Permalink
feat(menu): add menu style options
Browse files Browse the repository at this point in the history
To allow `#{thm_x}` styling of menus.

- @catppuccin_menu_style (`menu-style`)
- @catppuccin_menu_selected_style (`menu-selected-style`)
- @catppuccin_menu_border_style (`menu-border-style`)
  • Loading branch information
cluther committed Jul 13, 2024
1 parent 33c4fd6 commit 2fe783d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,25 @@ set -g @catppuccin_pane_border_style "fg=#{thm_gray}" # Use a value compatible w
set -g @catppuccin_pane_active_border_style "fg=#{thm_orange}" # Use a value compatible with the standard tmux 'pane-border-active-style'
```

### Menu

#### Set the menu style:

```sh
set -g @catppuccin_menu_style "fg=#{thm_gray}" # Use a value compatible with the standard tmux `menu-style`
```

#### Set the menu selected style:

```sh
set -g @catppuccin_menu_selected_style "fg=#{thm_orange}"
```

### Set the menu border style:

```sh
set -g @catppuccin_menu_border_style "fg=#{thm_gray}"
```

### Status
#### Set the default status bar visibility
Expand Down
9 changes: 9 additions & 0 deletions catppuccin.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ main() {
set message-style "fg=${thm_cyan},bg=${message_background},align=centre"
set message-command-style "fg=${thm_cyan},bg=${message_background},align=centre"

# menu
local menu_style menu_selected_style menu_border_style
menu_style=$(get_interpolated_tmux_option "@catppuccin_menu_style" "fg=${thm_fg},bg=${thm_gray}")
menu_selected_style=$(get_interpolated_tmux_option "@catppuccin_menu_selected_style" "fg=${thm_gray},bg=${thm_yellow}")
menu_border_style=$(get_interpolated_tmux_option "@catppuccin_menu_border_style" "fg=${thm_fg},bg=${thm_gray}")
set menu-style "$menu_style"
set menu-selected-style "$menu_selected_style"
set menu-border-style "$menu_border_style"

# panes
local pane_border_status pane_border_style \
pane_active_border_style pane_left_separator pane_middle_separator \
Expand Down

0 comments on commit 2fe783d

Please sign in to comment.