mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Group system menu bins together
This commit is contained in:
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
# }
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user