From c75d00eb928a6b1be9044e128fff982b9633e16c Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 20 May 2020 20:22:15 -0400 Subject: allow using the coloring feature only --- README.rst | 8 ++++++++ tmux-colortag.tmux | 24 ++++++++++++++---------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/README.rst b/README.rst index 7066f70..47f6e48 100644 --- a/README.rst +++ b/README.rst @@ -59,3 +59,11 @@ Installation - ``TMUX_ARROW_SYMBOL_L2`` - ``TMUX_ARROW_SYMBOL_R1`` - ``TMUX_ARROW_SYMBOL_R2`` + +- Optional: if you only want to color the tags (without changing other styles + such as borders), specify ``TMUX_COLORTAG_TAG_ONLY=yes``. + +Update to the Latest Version +============================ + +- Hit ``prefix`` + ``U`` and choose this plugin. diff --git a/tmux-colortag.tmux b/tmux-colortag.tmux index d76394b..7e77de6 100755 --- a/tmux-colortag.tmux +++ b/tmux-colortag.tmux @@ -2,6 +2,8 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" TMUX_COLORTAG_SET_INTERVAL="${TMUX_COLORTAG_SET_INTERVAL:-yes}" +TMUX_COLORTAG_TAG_ONLY="${TMUX_COLORTAG_TAG_ONLY:-no}" +TMUX_COLORTAG_NOPOWERLINE="${TMUX_COLORTAG_NOPOWERLINE:-no}" if [[ "$TMUX_COLORTAG_SET_INTERVAL" == yes ]]; then tmux set -g status on @@ -18,16 +20,18 @@ color6=colour240 color7=colour236 color8=colour235 -tmux set -g status-style bg=$color0 -tmux set -g message-style fg=$color0,bg=$color4 -tmux set -g message-command-style fg=$color0,bg=$color4 -tmux set -g pane-active-border-style fg=$color6 -tmux set -g pane-border-style fg=$color7,bg=$color8 -tmux set -g pane-active-border-style bg=$color8 -tmux setw -g window-status-style fg=$color0,bg=$color0,none -tmux setw -g window-status-activity-style bg=$color0,fg=$color4,none -tmux setw -g window-status-bell-style bg=$color0,fg=$color4,none -tmux setw -g window-status-separator "" +if [[ "$TMUX_COLORTAG_TAG_ONLY" != yes ]]; then + tmux set -g status-style bg=$color0 + tmux set -g message-style fg=$color0,bg=$color4 + tmux set -g message-command-style fg=$color0,bg=$color4 + tmux set -g pane-active-border-style fg=$color6 + tmux set -g pane-border-style fg=$color7,bg=$color8 + tmux set -g pane-active-border-style bg=$color8 + tmux setw -g window-status-style fg=$color0,bg=$color0,none + tmux setw -g window-status-activity-style bg=$color0,fg=$color4,none + tmux setw -g window-status-bell-style bg=$color0,fg=$color4,none + tmux setw -g window-status-separator "" +fi RECOVER_BG="#[bg=$color0]" LEFTBAR_FORMAT="$(printf "%s" \ -- cgit v1.2.3