diff options
Diffstat (limited to '.config/yambar/scripts')
-rwxr-xr-x | .config/yambar/scripts/chimera-updates.sh (renamed from .config/yambar/scripts/void-updates.sh) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/yambar/scripts/void-updates.sh b/.config/yambar/scripts/chimera-updates.sh index 98b3e0b..2a948ae 100755 --- a/.config/yambar/scripts/void-updates.sh +++ b/.config/yambar/scripts/chimera-updates.sh @@ -6,9 +6,9 @@ echo "" while true; do -xbps-install -Mun 1> /tmp/void-updates -updates="$(cat /tmp/void-updates | awk '{ print $1 }')" -number="$(cat /tmp/void-updates | wc -l)" +doas apk update +updates="$(apk -u list | awk '{ print $1 }')" +number="$(apk -u list | wc -l | awk '{$1=$1};1')" if [ "$number" -gt 0 ]; then text=" $number" @@ -24,7 +24,7 @@ done } function update { - foot bash -c "sudo xbps-install -Suv"; sh -c "~/.config/yambar/scripts/yambar-start.sh" + foot bash -c "doas apk upgrade"; sh -c "~/.config/yambar/scripts/yambar-start.sh" } case $1 in |