mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Ensure that noidle is turned off after update is complete
Closees #3982 Co-authored-by: @sgruendel
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user