diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2020-12-27 12:47:51 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2020-12-27 12:47:51 +0000 |
| commit | afa225e8322c2a53ef755d2f2d02241c36d5111f (patch) | |
| tree | c0dbea6737ad0c3af6adfc5958be0a4386e42c4f /.scripts/checkupdates | |
| parent | 776e889e385b5a49b3ca048dbca034fb10e9d276 (diff) | |
Minor improvements
Diffstat (limited to '.scripts/checkupdates')
| -rwxr-xr-x | .scripts/checkupdates | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.scripts/checkupdates b/.scripts/checkupdates index 380afd3..5a95974 100755 --- a/.scripts/checkupdates +++ b/.scripts/checkupdates @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh set -e updates=$(pacman -Qu | sed '/\[ignored\]$/d') @@ -6,7 +6,7 @@ updates=$(pacman -Qu | sed '/\[ignored\]$/d') case $BLOCK_BUTTON in 1) ;& # fallthrough 3) if [ -n "${updates}" ]; then - notify-send "Available updates" "$updates" + notify-send -t $((1000 * 20)) "Available updates" "$updates" else notify-send "Available updates" "No available updates" fi;; |
