From 49972658aaa7c7b3b2f446a59442f3013ec92f61 Mon Sep 17 00:00:00 2001 From: Chet Luther Date: Mon, 15 Jul 2024 11:04:49 -0400 Subject: [PATCH] feat(menu): add menu style options (#247) 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`) --- README.md | 19 +++++++++++++++++++ catppuccin.tmux | 9 +++++++++ 2 files changed, 28 insertions(+) diff --git a/README.md b/README.md index 3228064..ccc0ce2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/catppuccin.tmux b/catppuccin.tmux index 351009c..5771b8e 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -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 \