diff options
Diffstat (limited to '.scripts/checkupdates')
| -rwxr-xr-x | .scripts/checkupdates | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/.scripts/checkupdates b/.scripts/checkupdates deleted file mode 100755 index 5a95974..0000000 --- a/.scripts/checkupdates +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env sh -set -e - -updates=$(pacman -Qu | sed '/\[ignored\]$/d') - -case $BLOCK_BUTTON in - 1) ;& # fallthrough - 3) if [ -n "${updates}" ]; then - notify-send -t $((1000 * 20)) "Available updates" "$updates" - else - notify-send "Available updates" "No available updates" - fi;; -esac - -[ -n "$updates" ] && echo $(echo "${updates}" | wc -l) || exit 0 |
