mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user