From 0e5a3f9c6bdf85051cfa98db19c5f851af46e8f8 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Wed, 21 Sep 2022 00:27:41 +0200 Subject: [PATCH] fix conky session file update --- bin/checkupdates.sh | 2 +- bin/conkyctl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/checkupdates.sh b/bin/checkupdates.sh index ff6d511..df446f3 100755 --- a/bin/checkupdates.sh +++ b/bin/checkupdates.sh @@ -52,7 +52,7 @@ if [ -f /tmp/"$CONKYPID" ]; then PKGS=$(pamac checkupdates -aq| wc -l) if [ "$PKGS" != "0" ]; then if [[ "$update_notifications" == "true" ]];then - notify-send.sh -t 0 -i mbcc "$AVAIL_UPDATES" "$PKGS_TO_UPDATE $PKGS" -o "$YAY_UPD:terminator -T '$YAY_UPD' -e yay" \ + notify-send.sh -u critical -i mbcc "$AVAIL_UPDATES" "$PKGS_TO_UPDATE $PKGS" -o "$YAY_UPD:terminator -T '$YAY_UPD' -e yay" \ -o "$PAMAC_UPD:pamac-manager --updates" -o "$DISABLE:mb-setvar update_notifications=false ${CNF_FILE}" fi printf "\${font}\${alignr} $AVAIL_UPDATES: \${color red}" diff --git a/bin/conkyctl b/bin/conkyctl index 938ab11..feba7f2 100755 --- a/bin/conkyctl +++ b/bin/conkyctl @@ -6,6 +6,7 @@ BASECONKY="$CONKYDIR/sysinfo_mbcolor.conkyrc" SESSIONFILE="$CONKYDIR/conky-sessionfile" update_session () { + sleep 1 :> "${SESSIONFILE}" while read -r pid b c confpath do