1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 06:08:35 +01:00

test tooltip for pkg module

This commit is contained in:
eoli3n 2020-12-23 16:02:45 +01:00
parent c6fe5d26b3
commit a45aa4f773
2 changed files with 3 additions and 3 deletions

@ -1,6 +1,6 @@
#!/bin/bash
context=$(kubectx -c)
namespace=$(kubens -c)
context=$(kubectx -c 2>/dev/null)
namespace=$(kubens -c 2>/dev/null)
if [[ $namespace == "default" ]]
then

@ -27,7 +27,7 @@ xbps_check(){
exit 0
fi
text="<span foreground='#929292'></span> $pkg_count"
tooltip=$(awk '$0=$1' ORS='\\n' '{print $1}' <<< "$pkg")
tooltip=$(awk '$0=$1' ORS='\\n' <<< "$pkg")
printf '{"text": "%s", "tooltip": "%s"}' "$text" "$tooltip"
}