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