jonmosco / kube-tmux

Kubernetes status line for tmux
Apache License 2.0
345 stars 46 forks source link

Possible to change the color of the icon? #12

Closed arshbot closed 4 years ago

arshbot commented 4 years ago

Is there a non painful way to change the color of the icon? Blue is cool but it doesn't mesh well with my theme

arshbot commented 4 years ago

Totally possible it seems, the symbol is actually just ascii. Simply modify the following line

 KUBE_TMUX+="#[fg=blue]$(_kube_tmux_symbol)#[fg=colour${1}]"

modified so the color is now black

 KUBE_TMUX+="#[fg=black]$(_kube_tmux_symbol)#[fg=colour${1}]"
arshbot commented 4 years ago

git diff

diff --git a/kube.tmux b/kube.tmux
index a88055a..9c77c0a 100644
--- a/kube.tmux
+++ b/kube.tmux
@@ -134,7 +134,7 @@ kube_tmux() {

   # Symbol
   if [[ "${KUBE_TMUX_SYMBOL_ENABLE}" == true ]]; then
-    KUBE_TMUX+="#[fg=blue]$(_kube_tmux_symbol)#[fg=colour${1}]"
+    KUBE_TMUX+="#[fg=black]$(_kube_tmux_symbol)#[fg=colour${1}]"
   fi

   # Context