From 36a30dd01d88cceeac44a9442a171d7c504b9ef7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 24 Aug 2025 07:09:08 +0200 Subject: [PATCH] Skip the battery monitor during chroot install for now --- install/config/power.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/install/config/power.sh b/install/config/power.sh index 26c5ded7..3e92ce15 100644 --- a/install/config/power.sh +++ b/install/config/power.sh @@ -4,16 +4,12 @@ # even if they're not running off a battery. So let's make sure that's changed to performance. yay -S --noconfirm python-gobject power-profiles-daemon -if ls /sys/class/power_supply/BAT* &>/dev/null; then +if ls /sys/class/power_supply/BAT* &>/dev/null && [ -z "${OMARCHY_CHROOT_INSTALL:-}" ]; then # This computer runs on a battery powerprofilesctl set balanced || true # Enable battery monitoring timer for low battery notifications - if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then - systemctl --user enable omarchy-battery-monitor.timer - else - systemctl --user enable --now omarchy-battery-monitor.timer - fi + systemctl --user enable --now omarchy-battery-monitor.timer else # This computer runs on power outlet powerprofilesctl set performance || true