Rename AC power helper

This commit is contained in:
David Heinemeier Hansson
2026-06-24 13:38:09 +02:00
parent 267af23efc
commit d136585ef4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"
@@ -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
+1 -1
View File
@@ -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