From 25a4ad7b2824ca22fd032412997e54dfc90f89d9 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Thu, 13 May 2021 22:45:36 +0200 Subject: [PATCH] fix xbps waybar module --- TODO | 2 +- roles/waybar/files/waybar/modules/pkg.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 790cae8..306e248 100644 --- a/TODO +++ b/TODO @@ -21,4 +21,4 @@ # Voidlinux - [x] waybar upgrade module with xbps-flatpak -- [ ] list xbps updates without need to xbps-install -S as root +- [x] list xbps updates without need to xbps-install -S as root diff --git a/roles/waybar/files/waybar/modules/pkg.sh b/roles/waybar/files/waybar/modules/pkg.sh index e9ee74c..af540fd 100755 --- a/roles/waybar/files/waybar/modules/pkg.sh +++ b/roles/waybar/files/waybar/modules/pkg.sh @@ -16,7 +16,7 @@ pacman_check() { } xbps_check(){ - pkg=$(xbps-install -nu 2>/dev/null) + pkg=$(xbps-install -SMnu 2>/dev/null) pkg_count=$(wc -l <<< "$pkg") flatpak_count=$(flatpak update | grep -E '^ *[0-9]+\.' | awk '{print $2}' | wc -l)