Files
archypr/scripts/powerprofiles-init

10 lines
237 B
Bash
Executable File

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