From 9c9cde3e44b523fdcd36ad13d51c593f3567402c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Carvalho?= Date: Wed, 27 May 2020 02:43:13 -0300 Subject: [PATCH] Add option to enable high contrast on pane borders --- INSTALL.md | 1 + scripts/dracula.sh | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index c261f76..8165ece 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -23,3 +23,4 @@ Customize the status bar by adding any of these lines to your .tmux.conf as desi * Switch powerline symbols `set -g @dracula-show-left-sep ` for left and `set -g @dracula-show-right-sep ` for right symbol (can set any symbol you like as seperator) * Enable military time: `set -g @dracula-military-time true` * Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, or any character. +* Enable high contrast pane border: `set -g @dracula-border-contrast true` diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 0685c77..a607471 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -25,6 +25,7 @@ main() show_military=$(get_tmux_option "@dracula-military-time" false) show_left_sep=$(get_tmux_option "@dracula-show-left-sep" ) show_right_sep=$(get_tmux_option "@dracula-show-right-sep" ) + show_border_contrast=$(get_tmux_option "@dracula-border-contrast" false) # Dracula Color Pallette white='#f8f8f2' gray='#44475a' @@ -67,7 +68,12 @@ main() tmux set-option -g status-right-length 100 # pane border styling - tmux set-option -g pane-active-border-style "fg=${dark_purple}" + if $show_border_contrast; then + tmux set-option -g pane-active-border-style "fg=${light_purple}" + else + tmux set-option -g pane-active-border-style "fg=${dark_purple}" + fi + tmux set-option -g pane-border-style "fg=${gray}" # message styling