diff --git a/bin/omarchy-hibernation-setup b/bin/omarchy-hibernation-setup index ea2b7773..a28d4243 100755 --- a/bin/omarchy-hibernation-setup +++ b/bin/omarchy-hibernation-setup @@ -17,9 +17,11 @@ if [ -f "$MKINITCPIO_CONF" ] && grep -q "^HOOKS+=(resume)$" "$MKINITCPIO_CONF"; exit 0 fi -MEM_TOTAL_HUMAN=$(free --human | awk '/Mem/ {print $2}') -if ! gum confirm "Use $MEM_TOTAL_HUMAN on boot drive to make hibernation available?"; then - exit 0 +if [[ $1 != "--force" ]]; then + MEM_TOTAL_HUMAN=$(free --human | awk '/Mem/ {print $2}') + if ! gum confirm "Use $MEM_TOTAL_HUMAN on boot drive to make hibernation available?"; then + exit 0 + fi fi SWAP_SUBVOLUME="/swap" @@ -70,6 +72,6 @@ sudo limine-mkinitcpio echo -if gum confirm "Reboot to enable hiberation?"; then +if [[ $1 != "--force" ]] && gum confirm "Reboot to enable hibernation?"; then omarchy-cmd-reboot fi diff --git a/install/config/all.sh b/install/config/all.sh index dcb58c48..1ce7fbec 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -20,6 +20,7 @@ run_logged $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh run_logged $OMARCHY_INSTALL/config/input-group.sh run_logged $OMARCHY_INSTALL/config/omarchy-ai-skill.sh run_logged $OMARCHY_INSTALL/config/powerprofilesctl-rules.sh +run_logged $OMARCHY_INSTALL/config/hibernation.sh run_logged $OMARCHY_INSTALL/config/hardware/network.sh run_logged $OMARCHY_INSTALL/config/hardware/set-wireless-regdom.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh diff --git a/install/config/hibernation.sh b/install/config/hibernation.sh new file mode 100644 index 00000000..17628ead --- /dev/null +++ b/install/config/hibernation.sh @@ -0,0 +1,2 @@ +# Enable hibernation +omarchy-hibernation-setup --force