From afa225e8322c2a53ef755d2f2d02241c36d5111f Mon Sep 17 00:00:00 2001 From: 0scar Date: Sun, 27 Dec 2020 13:47:51 +0100 Subject: Minor improvements --- .scripts/checkupdates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.scripts/checkupdates') 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;; -- cgit v1.3