Skip to content

Commit

Permalink
feat(menu): add menu style options (#247)
Browse files Browse the repository at this point in the history
add menu style options 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 authored Jul 15, 2024
1 parent 33c4fd6 commit 4997265
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 "default" # Use a value compatible with the standard tmux `menu-style`
```

#### Set the menu selected style:

```sh
set -g @catppuccin_menu_selected_style "fg=#{thm_gray},bg=#{thm_yellow}" # Use a value compatible with the standard tmux `menu-selected-style`
```

### Set the menu border style:

```sh
set -g @catppuccin_menu_border_style "default" # Use a value compatible with the standard tmux `menu-border-style`
```

### 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" "default")
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" "default")
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 4997265

Please sign in to comment.