From c5f598ea869f39a37f93a03f4ed0b62713ae8023 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 5 Mar 2023 17:26:21 +0100 Subject: [PATCH] added tmux_conf_theme that controls whether theming is enabled or disabled (2), fixes #629 --- .tmux.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 3538f56..72e9241 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1099,9 +1099,8 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # } # printf "#[fg=%s,bg=%s,none]%s", bg[j_], status_bg, mainsep # }') -# -# status_left="$status_left " # fi +# status_left="$status_left " # # # -- status-right style # @@ -1174,6 +1173,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # } # }') # fi +# status_right=${status_right-} # # # -- clock --------------------------------------------------------------- # @@ -1231,7 +1231,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # -e 's%#{hostname_ssh}%#(cut -c3- ~/.tmux.conf | sh -s _hostname #{pane_pid} #{b:pane_tty} true false #h #D)%g' \ # -e 's%#{hostname_full_ssh}%#(cut -c3- ~/.tmux.conf | sh -s _hostname #{pane_pid} #{b:pane_tty} true true #H #D)%g') # -# status_left=$(printf '%s' "${status_left:-$(tmux show -gv status-left)}" | sed \ +# status_left=$(printf '%s' "${status_left-$(tmux show -gv status-left)}" | sed \ # -e "s/#{pairing}/#{?session_many_attached,$tmux_conf_theme_pairing ,}/g" \ # -e "s/#{prefix}/#{?client_prefix,$tmux_conf_theme_prefix ,$(printf "$tmux_conf_theme_prefix" | sed -e 's/./ /g') }/g" \ # -e "s/#{mouse}/#{?mouse,$tmux_conf_theme_mouse ,$(printf "$tmux_conf_theme_mouse" | sed -e 's/./ /g') }/g" \ @@ -1239,7 +1239,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # -e "s%#{circled_session_name}%#(cut -c3- ~/.tmux.conf | sh -s _circled #S)%g" \ # -e "s%#{root}%#{?#{==:#(cut -c3- ~/.tmux.conf | sh -s _username #{pane_pid} #{b:pane_tty} #D),root},$tmux_conf_theme_root,}%g") # -# status_right=$(printf '%s' "${status_right:-$(tmux show -gv status-right)}" | sed \ +# status_right=$(printf '%s' "${status_right-$(tmux show -gv status-right)}" | sed \ # -e "s/#{pairing}/#{?session_many_attached,$tmux_conf_theme_pairing ,}/g" \ # -e "s/#{prefix}/#{?client_prefix,$tmux_conf_theme_prefix ,$(printf "$tmux_conf_theme_prefix" | sed -e 's/./ /g') }/g" \ # -e "s/#{mouse}/#{?mouse,$tmux_conf_theme_mouse ,$(printf "$tmux_conf_theme_mouse" | sed -e 's/./ /g') }/g" \