mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
12 lines
342 B
Bash
Executable File
12 lines
342 B
Bash
Executable File
#!/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
|