diff options
author | Determinant <tederminant@gmail.com> | 2020-05-20 20:22:15 -0400 |
---|---|---|
committer | Determinant <tederminant@gmail.com> | 2020-05-20 20:22:15 -0400 |
commit | c75d00eb928a6b1be9044e128fff982b9633e16c (patch) | |
tree | 4da4a9b6265ff08d97f2872cc61b784e4c28ab1d | |
parent | 78e3fe332d4f81dd63eaaadee3cb41a7e7126099 (diff) |
allow using the coloring feature only
-rw-r--r-- | README.rst | 8 | ||||
-rwxr-xr-x | tmux-colortag.tmux | 24 |
2 files changed, 22 insertions, 10 deletions
@@ -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" \ |