Ensure that noidle is turned off after update is complete

Closees #3982
Co-authored-by: @sgruendel
This commit is contained in:
David Heinemeier Hansson
2025-12-24 19:25:18 +01:00
parent fd952c2323
commit e44e937284
3 changed files with 10 additions and 3 deletions

View File

@@ -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 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 if [[ $1 == "-y" ]] || omarchy-update-confirm; then
omarchy-update-without-idle
omarchy-snapshot create || [ $? -eq 127 ] omarchy-snapshot create || [ $? -eq 127 ]
omarchy-update-git omarchy-update-git
omarchy-update-perform omarchy-update-perform

View File

@@ -2,6 +2,10 @@
set -e 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-time
omarchy-update-keyring omarchy-update-keyring
omarchy-update-available-reset omarchy-update-available-reset
@@ -9,3 +13,6 @@ omarchy-update-system-pkgs
omarchy-migrate omarchy-migrate
omarchy-hook post-update omarchy-hook post-update
omarchy-update-restart omarchy-update-restart
# Re-enable screensaver/sleep after updates
hyprctl dispatch tagwindow -- -noidle &> /dev/null

View File

@@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# Ensure screensaver/sleep doesn't set in during updates # No-op now that omarchy-update-perform is responsible for idle management.
hyprctl dispatch tagwindow +noidle &> /dev/null # But this file can't be removed since it was referenced in old omarchy-update files,
# which would fail if this file is missing.