From debeea0bf78d2d997b9ae06646a9ce6ab6a9ecfe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 28 Feb 2026 15:03:51 +0100 Subject: [PATCH] Offer to reboot if Hyprland has been updated --- bin/omarchy-update-restart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/omarchy-update-restart b/bin/omarchy-update-restart index 2e62716b..e71ab568 100755 --- a/bin/omarchy-update-restart +++ b/bin/omarchy-update-restart @@ -6,6 +6,11 @@ elif [[ -f $HOME/.local/state/omarchy/reboot-required ]]; then gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot fi +running_hyprland=$(readlink /proc/$(pgrep -x Hyprland)/exe 2>/dev/null) +if [[ $running_hyprland == *"(deleted)"* ]]; then + gum confirm "Hyprland has been updated. Reboot?" && omarchy-system-reboot +fi + for file in "$HOME"/.local/state/omarchy/restart-*-required; do if [[ -f $file ]]; then filename=$(basename "$file")