diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-06-04 13:45:31 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-06-04 13:45:31 +0800 |
| commit | 635c736432170b42cd8325f52481508fb557c0ac (patch) | |
| tree | 8f51f82ceeb3b83be12d9b5efaa5b77a2d1f4ae8 /auto-update.sh | |
| parent | 61b5d7f614520cbc1bf9bae6994890eddffce09d (diff) | |
Fixes and finalized auto-update, idle, etc's format
Diffstat (limited to 'auto-update.sh')
| -rwxr-xr-x | auto-update.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/auto-update.sh b/auto-update.sh deleted file mode 100755 index 1a8e240..0000000 --- a/auto-update.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - - -while true; do - if [[ "$(systemctl is-system-running)" == "running" || "$(systemctl is-system-running)" == "degraded" ]]; then - if [[ "$(xprintidle)" -gt 600000 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour) - #sudo #exec sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf & - notify-send "Auto-Updater" "Update in progress, please don't poweroff the computer" && sudo npm update -g & nix-env -u & brew update & yay -Sl > /tmp/yaySl & yay -Syu --noconfirm --disable-download-timeout && flatpak update -y && notify-send -u low "Auto-Updater" "Update Successfully!" && echo \#sleep 3600 || notify-send -u critical "Auto-Updater" "Update Faild!" # pipx upgrade-all - else - sleep 60 - fi - fi -done |
