Skip to content

Commit

Permalink
feat: add synchronized panes indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
pnedkov committed Jul 12, 2024
1 parent 2f80299 commit ecde261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ tmux set-option -g status-style "bg=${PALLETE[bg_highlight]},fg=${PALLETE[white]

# border color
tmux set-option -g pane-active-border-style "fg=$border_style_active_pane"
tmux set-option -g pane-border-style "fg=$border_style_inactive_pane"
tmux set-option -g pane-border-style "#{?pane_synchronized,fg=$border_style_active_pane,fg=$border_style_inactive_pane}"

### Left side
tmux set-option -g status-left "$(generate_left_side_string)"
Expand Down
2 changes: 1 addition & 1 deletion src/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ function generate_active_window_string() {
separator_internal="#[bg=${PALLETE['purple']},fg=${PALLETE['magenta']}]${left_separator:?}#[none]"
separator_end="#[bg=${PALLETE[bg_highlight]},fg=${PALLETE['purple']}]${left_separator:?}#[none]"

echo "${separator_start}#[fg=${PALLETE[white]}]#I${separator_internal}#[fg=${PALLETE[white]}] #{?window_zoomed_flag, , }#W ${separator_end}#[none]"
echo "${separator_start}#[fg=${PALLETE[white]}]#I${separator_internal}#[fg=${PALLETE[white]}] #{?window_zoomed_flag, , }#W #{?pane_synchronized,✵, }${separator_end}#[none]"
}

0 comments on commit ecde261

Please sign in to comment.