Offer to reboot if Hyprland has been updated
This commit is contained in:
@@ -6,6 +6,11 @@ elif [[ -f $HOME/.local/state/omarchy/reboot-required ]]; then
|
|||||||
gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot
|
gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot
|
||||||
fi
|
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
|
for file in "$HOME"/.local/state/omarchy/restart-*-required; do
|
||||||
if [[ -f $file ]]; then
|
if [[ -f $file ]]; then
|
||||||
filename=$(basename "$file")
|
filename=$(basename "$file")
|
||||||
|
|||||||
Reference in New Issue
Block a user