diff options
| author | NPScript <nathan@reinerweb.ch> | 2022-04-09 21:22:20 +0200 |
|---|---|---|
| committer | NPScript <nathan@reinerweb.ch> | 2022-04-09 21:22:20 +0200 |
| commit | 896c311feb10e947c727a888308dbc7eb71d1ec2 (patch) | |
| tree | b6713478d14eb8ea531107c3f399c437db7fd2fb /.local/bin/updates | |
init commit
Diffstat (limited to '.local/bin/updates')
| -rwxr-xr-x | .local/bin/updates | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.local/bin/updates b/.local/bin/updates new file mode 100755 index 0000000..b3acb48 --- /dev/null +++ b/.local/bin/updates @@ -0,0 +1,15 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 1) setsid storeless;; + 3) notify-send "📦 Upates" "$(yay -Qu)";; +esac + +packages=$(yay -Sy >/dev/null && yay -Qu) + +if [ -n "$packages" ] +then + echo $(echo "$packages" | wc -l) ⏬ +else + echo 🔁 +fi |