OSDN Git Service

add pacdiff to updatenotify
authorpaperbenni <paperbenni@gmail.com>
Mon, 28 Sep 2020 14:09:26 +0000 (16:09 +0200)
committerpaperbenni <paperbenni@gmail.com>
Mon, 28 Sep 2020 14:09:26 +0000 (16:09 +0200)
programs/instantclipmenu
programs/instantupdatenotify

index aa8c4e4..c546ccf 100755 (executable)
@@ -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
index 7f2eafc..60d805b 100755 (executable)
@@ -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"