Use the new helper

This commit is contained in:
David Heinemeier Hansson
2026-01-29 17:38:50 +01:00
parent f78f5b2c2c
commit e567020e1b

View File

@@ -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