We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
synchronize-panes
@dracula-synchronize-panes-auto-hide
1 parent 6000e2a commit 1b69e8aCopy full SHA for 1b69e8a
scripts/synchronize_panes.sh
@@ -16,9 +16,19 @@ main()
16
{
17
# storing the refresh rate in the variable RATE, default is 5
18
RATE=$(get_tmux_option "@dracula-refresh-rate" 5)
19
- synchronize_panes_label=$label
+
20
+ synchronize_panes_auto_hide=$(get_tmux_option "@dracula-synchronize-panes-auto-hide" "false")
21
synchronize_panes_status=$(get_synchronize_panes_status)
- echo "$synchronize_panes_label $synchronize_panes_status"
22
+ synchronize_panes_label=$label
23
24
+ if [[ "$synchronize_panes_auto_hide" == 'true' ]]; then
25
+ if [[ "$synchronize_panes_status" == 'on' ]]; then
26
+ echo "$synchronize_panes_label"
27
+ fi
28
+ else
29
+ echo "$synchronize_panes_label $synchronize_panes_status"
30
31
32
sleep $RATE
33
}
34
0 commit comments