From e567020e1b498f19e626ff1d300bfe5158fa9b8c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 29 Jan 2026 17:38:50 +0100 Subject: [PATCH] Use the new helper --- install/first-run/battery-monitor.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/first-run/battery-monitor.sh b/install/first-run/battery-monitor.sh index 89e0ed9f..a8f05522 100644 --- a/install/first-run/battery-monitor.sh +++ b/install/first-run/battery-monitor.sh @@ -1,10 +1,8 @@ -if ls /sys/class/power_supply/BAT* &>/dev/null; then - # This computer runs on a battery +if omarchy-battery-present; then powerprofilesctl set balanced || true # Enable battery monitoring timer for low battery notifications systemctl --user enable --now omarchy-battery-monitor.timer else - # This computer runs on power outlet powerprofilesctl set performance || true fi