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")