Group system menu bins together

This commit is contained in:
David Heinemeier Hansson
2026-02-21 16:36:56 +01:00
parent 1c527e0cd7
commit 311fbe8576
9 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -92,5 +92,5 @@ sudo limine-update
echo
if [[ $1 != "--force" ]] && gum confirm "Reboot to enable hibernation?"; then
omarchy-cmd-reboot
omarchy-system-reboot
fi
+2 -2
View File
@@ -578,8 +578,8 @@ show_system_menu() {
*Suspend*) systemctl suspend ;;
*Hibernate*) systemctl hibernate ;;
*Logout*) omarchy-system-logout ;;
*Restart*) omarchy-cmd-reboot ;;
*Shutdown*) omarchy-cmd-shutdown ;;
*Restart*) omarchy-system-reboot ;;
*Shutdown*) omarchy-system-shutdown ;;
*) back_to show_main_menu ;;
esac
}
+1 -1
View File
@@ -10,5 +10,5 @@ if gum confirm "Are you sure you want to reinstall and lose all config changes?"
omarchy-reinstall-pkgs
omarchy-reinstall-configs
gum confirm "System has been reinstalled. Reboot?" && omarchy-cmd-reboot
gum confirm "System has been reinstalled. Reboot?" && omarchy-system-reboot
fi
+2 -2
View File
@@ -37,7 +37,7 @@ case "$gpu_mode" in
# Remove the startup delay override (not needed for Hybrid mode)
sudo rm -rf /etc/systemd/system/supergfxd.service.d/delay-start.conf
omarchy-cmd-reboot
omarchy-system-reboot
fi
;;
"Hybrid")
@@ -55,7 +55,7 @@ case "$gpu_mode" in
sudo mkdir -p /etc/systemd/system/supergfxd.service.d
sudo cp -p $OMARCHY_PATH/default/systemd/system/supergfxd.service.d/delay-start.conf /etc/systemd/system/supergfxd.service.d/
omarchy-cmd-reboot
omarchy-system-reboot
fi
;;
*)
+2 -2
View File
@@ -1,9 +1,9 @@
#!/bin/bash
if [[ ! -d /usr/lib/modules/$(uname -r) ]]; then
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-cmd-reboot
gum confirm "Linux kernel has been updated. Reboot?" && omarchy-system-reboot
elif [[ -f $HOME/.local/state/omarchy/reboot-required ]]; then
gum confirm "Updates require reboot. Ready?" && omarchy-cmd-reboot
gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot
fi
for file in "$HOME"/.local/state/omarchy/restart-*-required; do
+1 -1
View File
@@ -8,7 +8,7 @@
# show_system_menu() {
# case $(menu "System" " Lock\n󰐥 Shutdown") in
# *Lock*) omarchy-lock-screen ;;
# *Shutdown*) omarchy-cmd-shutdown ;;
# *Shutdown*) omarchy-system-shutdown ;;
# *) back_to show_main_menu ;;
# esac
# }
+2 -2
View File
@@ -309,8 +309,8 @@ omarchy-update # Full system update
omarchy-version # Show Omarchy version
omarchy-debug --no-sudo --print # Debug info (ALWAYS use these flags)
omarchy-lock-screen # Lock screen
omarchy-cmd-shutdown # Shutdown
omarchy-cmd-reboot # Reboot
omarchy-system-shutdown # Shutdown
omarchy-system-reboot # Reboot
```
**IMPORTANT:** Always run `omarchy-debug` with `--no-sudo --print` flags to avoid interactive sudo prompts that will hang the terminal.