mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 15:01:59 +01:00
test tooltip for pkg module
This commit is contained in:
parent
c6fe5d26b3
commit
a45aa4f773
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
context=$(kubectx -c)
|
context=$(kubectx -c 2>/dev/null)
|
||||||
namespace=$(kubens -c)
|
namespace=$(kubens -c 2>/dev/null)
|
||||||
|
|
||||||
if [[ $namespace == "default" ]]
|
if [[ $namespace == "default" ]]
|
||||||
then
|
then
|
||||||
|
@ -27,7 +27,7 @@ xbps_check(){
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
text="<span foreground='#929292'></span> $pkg_count"
|
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"
|
printf '{"text": "%s", "tooltip": "%s"}' "$text" "$tooltip"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user