Plumbing through the new variable to theme files;

This is the start of plumbing things through into the theme files, but I
do think that there is a better way here. I'm open to suggestions and
will probably ask for some help in the Discord for Catppuccin.
This commit is contained in:
Roger Steve Ruiz 2022-11-23 14:50:03 -05:00
parent 7208fc8363
commit fb4e08d66c
No known key found for this signature in database
GPG key ID: 68061DBF1C4C0B44
2 changed files with 12 additions and 1 deletions

View file

@ -53,9 +53,18 @@ setw window-status-activity-style "fg=${thm_fg},bg=${thm_bg},none"
setw window-status-separator ""
setw window-status-style "fg=${thm_fg},bg=${thm_bg},none"
# TODO: continue implementing this later today...
wt_enabled=$(tmux show -gqv @catppuccin_window_tabs_enabled)
status_left=""
if [[ "${wt_enabled}" == "on" ]]
then
status_left="window_tabs_enabled"
fi
# --------=== Statusline
set status-left ""
set status-left "#[fg=$thm_red,bg=$thm_bg,nobold,nounderscore,noitalics]$status_left#[fg=$thm_fg,bg=$thm_bg,nobold,nounderscore,noitalics]"
set status-right "#[fg=$thm_pink,bg=$thm_bg,nobold,nounderscore,noitalics]#[fg=$thm_bg,bg=$thm_pink,nobold,nounderscore,noitalics] #[fg=$thm_fg,bg=$thm_gray] #W #{?client_prefix,#[fg=$thm_red],#[fg=$thm_green]}#[bg=$thm_gray]#{?client_prefix,#[bg=$thm_red],#[bg=$thm_green]}#[fg=$thm_bg] #[fg=$thm_fg,bg=$thm_gray] #S "
# current_dir

View file

@ -10,6 +10,8 @@ get-tmux-option() {
if [ -n "$value" ]; then
echo "$value"
else
# README: Set the default option if it's not set originally.
tmux set-option -gq "${option}" "${default}"
echo "$default"
fi
}