Added syncing indicator to tmux status line
This checks for if the panes are synced or not, and provides and indicator resembling it in the status bar.
This commit is contained in:
+11
@@ -828,6 +828,11 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||
# tmux_conf_theme_root_bg=${tmux_conf_theme_root_bg:-'none'}
|
||||
# tmux_conf_theme_root_attr=${tmux_conf_theme_root_attr:-'bold,blink'}
|
||||
#
|
||||
# tmux_conf_theme_synchronized=${tmux_conf_theme_synchronized:-'🔒'} # U+1F512
|
||||
# tmux_conf_theme_synchronized_fg=${tmux_conf_theme_synchronized_fg:-'none'}
|
||||
# tmux_conf_theme_synchronized_bg=${tmux_conf_theme_synchronized_bg:-'none'}
|
||||
# tmux_conf_theme_synchronized_attr=${tmux_conf_theme_synchronized_attr:-'none'}
|
||||
#
|
||||
# # -- status left style
|
||||
#
|
||||
# tmux_conf_theme_status_left=${tmux_conf_theme_status_left-' ❐ #S '}
|
||||
@@ -844,6 +849,9 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||
# tmux_conf_theme_status_left=$(echo "$tmux_conf_theme_status_left" | sed \
|
||||
# -e "s%#{root}%#[fg=$tmux_conf_theme_root_fg]#[bg=$tmux_conf_theme_root_bg]#[$tmux_conf_theme_root_attr]#(cut -c3- ~/.tmux.conf | sh -s _root #{pane_tty} #D)#[inherit]%g")
|
||||
#
|
||||
# tmux_conf_theme_status_left=$(echo "$tmux_conf_theme_status_left" | sed \
|
||||
# -e "s%#{synchronized}%#[fg=$tmux_conf_theme_synchronized_fg]#[bg=$tmux_conf_theme_synchronized_bg]#[$tmux_conf_theme_synchronized_attr]#{?pane_synchronized,$tmux_conf_theme_synchronized,}%g")
|
||||
#
|
||||
# if [ -n "$tmux_conf_theme_status_left" ]; then
|
||||
# status_left=$(awk \
|
||||
# -v fg_="$tmux_conf_theme_status_left_fg" \
|
||||
@@ -928,6 +936,9 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||
# tmux_conf_theme_status_right=$(echo "$tmux_conf_theme_status_right" | sed \
|
||||
# -e "s%#{root}%#[fg=$tmux_conf_theme_root_fg]#[bg=$tmux_conf_theme_root_bg]#[$tmux_conf_theme_root_attr]#(cut -c3- ~/.tmux.conf | sh -s _root #{pane_tty} #D)#[inherit]%g")
|
||||
#
|
||||
# tmux_conf_theme_status_right=$(echo "$tmux_conf_theme_status_right" | sed \
|
||||
# -e "s%#{synchronized}%#[fg=$tmux_conf_theme_synchronized_fg]#[bg=$tmux_conf_theme_synchronized_bg]#[$tmux_conf_theme_synchronized_attr]#{?pane_synchronized,$tmux_conf_theme_synchronized,}%g")
|
||||
#
|
||||
# if [ -n "$tmux_conf_theme_status_right" ]; then
|
||||
# status_right=$(awk \
|
||||
# -v fg_="$tmux_conf_theme_status_right_fg" \
|
||||
|
||||
Reference in New Issue
Block a user