diff --git a/bin/omarchy-update b/bin/omarchy-update index 39ae5c0c..4ff1c39e 100755 --- a/bin/omarchy-update +++ b/bin/omarchy-update @@ -5,6 +5,7 @@ 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 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-confirm b/bin/omarchy-update-confirm index 7d447bb7..df3d8145 100755 --- a/bin/omarchy-update-confirm +++ b/bin/omarchy-update-confirm @@ -1,5 +1,4 @@ #!/bin/bash -hyprctl dispatch tagwindow +noidle gum style --border normal --border-foreground 6 --padding "1 2" \ "Ready to update?" \ diff --git a/bin/omarchy-update-without-idle b/bin/omarchy-update-without-idle new file mode 100755 index 00000000..d1892373 --- /dev/null +++ b/bin/omarchy-update-without-idle @@ -0,0 +1,4 @@ +#!/bin/bash + +# Ensure screensaver/sleep doesn't set in during updates +hyprctl dispatch tagwindow +noidle &> /dev/null