From d9d260525371c81d265a6a15468cd90384960c8c Mon Sep 17 00:00:00 2001 From: Parker Kain Date: Wed, 3 May 2023 20:45:12 -0400 Subject: [PATCH] setting --- catppuccin.tmux | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index b0f3f43..de68f7c 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -77,14 +77,23 @@ main() { user="$(get_tmux_option "@catppuccin_user" "off")" readonly user + local user_icon + user_icon="$(get_tmux_option "@catppuccin_user_icon", "")" + local host host="$(get_tmux_option "@catppuccin_host" "off")" readonly host + local host_icon + host_icon="$(get_tmux_option "@catppuccin_host_icon", "󰒋")" + local date_time date_time="$(get_tmux_option "@catppuccin_date_time" "off")" readonly date_time + local datetime_icon + datetime_icon="$(get_tmux_option "@catppuccin_datetime_icon", "󰒋")" + # These variables are the defaults so that the setw and set calls are easier to parse. local show_directory readonly show_directory="#[fg=$thm_pink,bg=$thm_bg,nobold,nounderscore,noitalics]$right_separator#[fg=$thm_bg,bg=$thm_pink,nobold,nounderscore,noitalics] #[fg=$thm_fg,bg=$thm_gray] #{b:pane_current_path} #{?client_prefix,#[fg=$thm_red]" @@ -108,13 +117,13 @@ main() { readonly show_window_in_window_status_current="#[fg=$thm_fg,bg=$thm_gray] #W #[fg=$thm_bg,bg=$thm_orange] #I#[fg=$thm_orange,bg=$thm_bg]$left_separator#[fg=$thm_fg,bg=$thm_bg,nobold,nounderscore,noitalics] " local show_user - readonly show_user="#[fg=$thm_blue,bg=$thm_gray]$right_separator#[fg=$thm_bg,bg=$thm_blue] #[fg=$thm_fg,bg=$thm_gray] #(whoami) " + readonly show_user="#[fg=$thm_blue,bg=$thm_gray]$right_separator#[fg=$thm_bg,bg=$thm_blue]${user_icon} #[fg=$thm_fg,bg=$thm_gray] #(whoami) " local show_host - readonly show_host="#[fg=$thm_blue,bg=$thm_gray]$right_separator#[fg=$thm_bg,bg=$thm_blue]󰒋 #[fg=$thm_fg,bg=$thm_gray] #H " + readonly show_host="#[fg=$thm_blue,bg=$thm_gray]$right_separator#[fg=$thm_bg,bg=$thm_blue]${host_icon} #[fg=$thm_fg,bg=$thm_gray] #H " local show_date_time - readonly show_date_time="#[fg=$thm_blue,bg=$thm_gray]$right_separator#[fg=$thm_bg,bg=$thm_blue]󱑒 #[fg=$thm_fg,bg=$thm_gray] $date_time " + readonly show_date_time="#[fg=$thm_blue,bg=$thm_gray]$right_separator#[fg=$thm_bg,bg=$thm_blue]${datetime_icon} #[fg=$thm_fg,bg=$thm_gray] $date_time " # Right column 1 by default shows the Window name. local right_column1=$show_window