Add ~/.local/share/omarchy/bin to systemwide PATH (#602)

* Add omarchy to system path

* Remove unnecessary duplicate

* Remove path def since it's global now

* Migration for system-wide path

* Remove debug code

* Refresh after update

* Add common state script

* Restart on state detected

* Set state instead

* Export own path for menu
This commit is contained in:
Ryan Hughes
2025-08-10 19:58:44 +02:00
committed by GitHub
parent 94aa9b688f
commit b2eb1b08a4
6 changed files with 98 additions and 59 deletions

View File

@@ -18,5 +18,9 @@ yay -Syu --noconfirm
# Offer to reboot if the kernel has been changed
if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then
gum confirm "Linux kernel has been updated. Reboot?" && sudo reboot now
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-state clear re*-required && sudo reboot now
elif [ -f "$HOME/.local/state/omarchy/restart-required" ]; then
gum confirm "Some updates require a system restart to take effect. Would you like to restart now?" && omarchy-state clear re*-required && uwsm stop
elif [ -f "$HOME/.local/state/omarchy/relaunch-required" ]; then
gum confirm "Some updates require Hyprland to be relaunched to take effect. Would you like to relaunch Hyprland now?" && omarchy-state clear relaunch-required && uwsm stop
fi