Ensure we set performance profile on boot when on AC

This commit is contained in:
David Heinemeier Hansson
2026-04-15 18:14:07 +02:00
parent ce29e45ccd
commit a76757335a
3 changed files with 21 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# Set the correct power profile on boot based on current AC/battery state.
# The udev rules only fire on state *changes*, so without this, booting
# on AC leaves you in the default balanced mode.
if omarchy-battery-present && ! omarchy-ac-present; then
omarchy-powerprofiles-set battery
else
omarchy-powerprofiles-set ac
fi