diff --git a/bin/omarchy-update b/bin/omarchy-update index bab341fb..7b800005 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -5,7 +5,6 @@ set -e trap 'echo ""; echo -e "\033[0;31mSomething went wrong during the update!\n\nPlease review the output above carefully, correct the error, and retry the update.\n\nIf you need assistance, get help from the community at https://omarchy.org/discord\033[0m"' ERR if [[ $1 == "-y" ]] || omarchy-update-confirm; then - omarchy-update-without-idle omarchy-snapshot create || [ $? -eq 127 ] omarchy-update-git omarchy-update-perform diff --git a/bin/omarchy-update-perform b/bin/omarchy-update-perform index f2b7ddc0..2b6810d9 100755 --- a/bin/omarchy-update-perform +++ b/bin/omarchy-update-perform @@ -2,6 +2,10 @@ set -e +# Ensure screensaver/sleep doesn't set in during updates +hyprctl dispatch tagwindow +noidle &> /dev/null + +# Perform all update steps omarchy-update-time omarchy-update-keyring omarchy-update-available-reset @@ -9,3 +13,6 @@ omarchy-update-system-pkgs omarchy-migrate omarchy-hook post-update omarchy-update-restart + +# Re-enable screensaver/sleep after updates +hyprctl dispatch tagwindow -- -noidle &> /dev/null diff --git a/bin/omarchy-update-without-idle b/bin/omarchy-update-without-idle index d1892373..20d1ef10 100755 --- a/bin/omarchy-update-without-idle +++ b/bin/omarchy-update-without-idle @@ -1,4 +1,5 @@ #!/bin/bash -# Ensure screensaver/sleep doesn't set in during updates -hyprctl dispatch tagwindow +noidle &> /dev/null +# No-op now that omarchy-update-perform is responsible for idle management. +# But this file can't be removed since it was referenced in old omarchy-update files, +# which would fail if this file is missing.