diff --git a/bin/omarchy b/bin/omarchy index a6341e7b..4505f568 100755 --- a/bin/omarchy +++ b/bin/omarchy @@ -26,7 +26,6 @@ declare -A ROUTE_IS_ALIAS declare -A BINARY_TO_KEY declare -A GROUP_DESCRIPTIONS -GROUP_DESCRIPTIONS[ac]="AC power detection" GROUP_DESCRIPTIONS[audio]="Audio input and output controls" GROUP_DESCRIPTIONS[battery]="Battery status helpers" GROUP_DESCRIPTIONS[bluetooth]="Bluetooth device controls" @@ -63,6 +62,7 @@ GROUP_DESCRIPTIONS[osd]="On-screen display status helpers" GROUP_DESCRIPTIONS[pkg]="Package management helpers" GROUP_DESCRIPTIONS[plugin]="Omarchy shell plugin and bar widget management" GROUP_DESCRIPTIONS[plymouth]="Plymouth boot theme management" +GROUP_DESCRIPTIONS[power]="Power supply detection" GROUP_DESCRIPTIONS[powerprofiles]="Power profile management" GROUP_DESCRIPTIONS[refresh]="Reset config to defaults" GROUP_DESCRIPTIONS[reinstall]="Reinstall and reset workflows" diff --git a/bin/omarchy-ac-present b/bin/omarchy-power-present similarity index 71% rename from bin/omarchy-ac-present rename to bin/omarchy-power-present index df205ae8..9ae756ca 100755 --- a/bin/omarchy-ac-present +++ b/bin/omarchy-power-present @@ -1,6 +1,6 @@ #!/bin/bash -# omarchy:summary=Returns true if AC power is connected. +# omarchy:summary=Returns true if external power is connected. for ac in /sys/class/power_supply/AC* /sys/class/power_supply/ADP*; do [[ -r $ac/online && $(cat "$ac/online") == "1" ]] && exit 0 diff --git a/bin/omarchy-powerprofiles-init b/bin/omarchy-powerprofiles-init index f2dcee1d..a8dd1cc6 100755 --- a/bin/omarchy-powerprofiles-init +++ b/bin/omarchy-powerprofiles-init @@ -2,7 +2,7 @@ # omarchy:summary=Set the correct power profile on boot based on current AC/battery state. -if omarchy-battery-present && ! omarchy-ac-present; then +if omarchy-battery-present && ! omarchy-power-present; then omarchy-powerprofiles-set battery else omarchy-powerprofiles-set ac