From: paperbenni Date: Mon, 28 Sep 2020 14:09:26 +0000 (+0200) Subject: add pacdiff to updatenotify X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=00cb1df8f25d55f12f2e199f666b76218375fe27;p=instantos%2FinstantOS.git add pacdiff to updatenotify --- diff --git a/programs/instantclipmenu b/programs/instantclipmenu index aa8c4e4..c546ccf 100755 --- a/programs/instantclipmenu +++ b/programs/instantclipmenu @@ -11,6 +11,7 @@ enableclipmenu() { fi iconf -i clipmanager 1 instantinstall clipmenu + sleep 0.2 pgrep -f clipmenud || clipmenud & sleep 2 echo "test" >"$cache_file" @@ -32,4 +33,3 @@ fi [ -e "$cache_file" ] || enableclipmenu CM_LAUNCHER=instantmenu clipmenu -p "  " -q 'clipboard manager' -h -1 -lc "instantclipmenu delete" -pgrep -f clipmenud || enableclipmenu diff --git a/programs/instantupdatenotify b/programs/instantupdatenotify index 7f2eafc..60d805b 100755 --- a/programs/instantupdatenotify +++ b/programs/instantupdatenotify @@ -38,6 +38,13 @@ done if grep -q '..' /tmp/updatechoice; then if grep 'update now' /tmp/updatechoice; then ~/.config/instantos/default/terminal -e sh -c yay + if imenu -c "there are updates for root owned config files, update now?" + then + if pacdiff --output | grep -q '...' + then + ~/.config/instantos/default/terminal -e sh -c "sudo pacdiff" + fi + fi fi else kill "$TMPPID"