1
0
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:
eoli3n 2020-12-23 16:01:01 +01:00
parent e0c1b10d36
commit c6fe5d26b3
2 changed files with 2 additions and 2 deletions

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

@ -1,6 +1,6 @@
#!/bin/bash
if ! systemctl is-system-running
if ! systemctl is-system-running &>/dev/null
then
echo $(systemctl is-system-running) $(systemctl list-units --failed --plain --no-legend --full | wc -l)
exit 0