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 echo
if [[ $1 != "--force" ]] && gum confirm "Reboot to enable hibernation?"; then if [[ $1 != "--force" ]] && gum confirm "Reboot to enable hibernation?"; then
omarchy-cmd-reboot omarchy-system-reboot
fi fi
+2 -2
View File
@@ -578,8 +578,8 @@ show_system_menu() {
*Suspend*) systemctl suspend ;; *Suspend*) systemctl suspend ;;
*Hibernate*) systemctl hibernate ;; *Hibernate*) systemctl hibernate ;;
*Logout*) omarchy-system-logout ;; *Logout*) omarchy-system-logout ;;
*Restart*) omarchy-cmd-reboot ;; *Restart*) omarchy-system-reboot ;;
*Shutdown*) omarchy-cmd-shutdown ;; *Shutdown*) omarchy-system-shutdown ;;
*) back_to show_main_menu ;; *) back_to show_main_menu ;;
esac 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-pkgs
omarchy-reinstall-configs omarchy-reinstall-configs
gum confirm "System has been reinstalled. Reboot?" && omarchy-cmd-reboot gum confirm "System has been reinstalled. Reboot?" && omarchy-system-reboot
fi fi
+2 -2
View File
@@ -37,7 +37,7 @@ case "$gpu_mode" in
# Remove the startup delay override (not needed for Hybrid mode) # Remove the startup delay override (not needed for Hybrid mode)
sudo rm -rf /etc/systemd/system/supergfxd.service.d/delay-start.conf sudo rm -rf /etc/systemd/system/supergfxd.service.d/delay-start.conf
omarchy-cmd-reboot omarchy-system-reboot
fi fi
;; ;;
"Hybrid") "Hybrid")
@@ -55,7 +55,7 @@ case "$gpu_mode" in
sudo mkdir -p /etc/systemd/system/supergfxd.service.d 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/ 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 fi
;; ;;
*) *)
+2 -2
View File
@@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
if [[ ! -d /usr/lib/modules/$(uname -r) ]]; then 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 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 fi
for file in "$HOME"/.local/state/omarchy/restart-*-required; do for file in "$HOME"/.local/state/omarchy/restart-*-required; do
+1 -1
View File
@@ -8,7 +8,7 @@
# show_system_menu() { # show_system_menu() {
# case $(menu "System" " Lock\n󰐥 Shutdown") in # case $(menu "System" " Lock\n󰐥 Shutdown") in
# *Lock*) omarchy-lock-screen ;; # *Lock*) omarchy-lock-screen ;;
# *Shutdown*) omarchy-cmd-shutdown ;; # *Shutdown*) omarchy-system-shutdown ;;
# *) back_to show_main_menu ;; # *) back_to show_main_menu ;;
# esac # esac
# } # }
+2 -2
View File
@@ -309,8 +309,8 @@ omarchy-update # Full system update
omarchy-version # Show Omarchy version omarchy-version # Show Omarchy version
omarchy-debug --no-sudo --print # Debug info (ALWAYS use these flags) omarchy-debug --no-sudo --print # Debug info (ALWAYS use these flags)
omarchy-lock-screen # Lock screen omarchy-lock-screen # Lock screen
omarchy-cmd-shutdown # Shutdown omarchy-system-shutdown # Shutdown
omarchy-cmd-reboot # Reboot omarchy-system-reboot # Reboot
``` ```
**IMPORTANT:** Always run `omarchy-debug` with `--no-sudo --print` flags to avoid interactive sudo prompts that will hang the terminal. **IMPORTANT:** Always run `omarchy-debug` with `--no-sudo --print` flags to avoid interactive sudo prompts that will hang the terminal.