diff --git a/roles/waybar/files/waybar/modules/pkg.sh b/roles/waybar/files/waybar/modules/pkg.sh index a6404ed..0696756 100755 --- a/roles/waybar/files/waybar/modules/pkg.sh +++ b/roles/waybar/files/waybar/modules/pkg.sh @@ -27,7 +27,7 @@ xbps_check(){ exit 0 fi text=" $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" } diff --git a/roles/waybar/files/waybar/modules/systemd.sh b/roles/waybar/files/waybar/modules/systemd.sh index 492c1e1..4286491 100755 --- a/roles/waybar/files/waybar/modules/systemd.sh +++ b/roles/waybar/files/waybar/modules/systemd.sh @@ -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