This commit is contained in:
Parker Kain 2023-05-03 20:45:12 -04:00
parent 33f8fb6eb6
commit d9d2605253

View file

@ -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