Skip to content

Commit bdecfc6

Browse files
committed
Add synchronize-panes-specific refresh rate (@dracula-synchronize-panes-refresh-rate) that takes precedence over @dracula-refresh-rate
This enables the user to set a custom `synchronize-panes` refresh rate, which may need to be more frequent than other plugins
1 parent 1b69e8a commit bdecfc6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/synchronize_panes.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ main()
1717
# storing the refresh rate in the variable RATE, default is 5
1818
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
1919

20+
# Use the @dracula-synchronize-panes-refresh-rate plugin variable to override it.
21+
RATE_OVERRIDE=$(get_tmux_option "@dracula-synchronize-panes-refresh-rate" "")
22+
if [[ -n "$RATE_OVERRIDE" ]]; then
23+
RATE="$RATE_OVERRIDE"
24+
fi
25+
2026
synchronize_panes_auto_hide=$(get_tmux_option "@dracula-synchronize-panes-auto-hide" "false")
2127
synchronize_panes_status=$(get_synchronize_panes_status)
2228
synchronize_panes_label=$label

0 commit comments

Comments
 (0)