Files
omarchycn/bin/omarchy-powerprofiles-init
T

10 lines
240 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Set the correct power profile on boot based on current AC/battery state.
if omarchy-battery-present && ! omarchy-power-present; then
omarchy-powerprofiles-set battery
else
omarchy-powerprofiles-set ac
fi