diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-06-02 13:18:49 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-06-02 13:18:49 +0100 |
commit | 1695d600a000abf65ef6e5e0a176991c00773b31 (patch) | |
tree | f59fa43c3a359e748da9ca85fffe9417bdbb3676 /.config/yambar/scripts/void-updates.sh | |
parent | cb2aa2a9ab0bff2c4c17323f592aae9964f62495 (diff) |
Added Chimera Linux updates script ( Allowed wheel group to 'apk update' only in doas.conf )
Diffstat (limited to '.config/yambar/scripts/void-updates.sh')
-rwxr-xr-x | .config/yambar/scripts/void-updates.sh | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/.config/yambar/scripts/void-updates.sh b/.config/yambar/scripts/void-updates.sh deleted file mode 100755 index 98b3e0b..0000000 --- a/.config/yambar/scripts/void-updates.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -function update-yambar { -echo "updates|string|" -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)" - -if [ "$number" -gt 0 ]; then - text=" $number" -else - text="" -fi - -echo "updates|string|$text" -echo "" -sleep 30m - -done -} - -function update { - foot bash -c "sudo xbps-install -Suv"; sh -c "~/.config/yambar/scripts/yambar-start.sh" -} - -case $1 in - update) - update - ;; - *) - update-yambar - ;; -esac -exit 0 |