Use power profile helper in panel

This commit is contained in:
David Heinemeier Hansson
2026-05-21 11:39:55 +02:00
parent 25c3752051
commit d132e0ec61
2 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ Panel {
Process {
id: profilesProc
command: ["bash", "-lc", "powerprofilesctl list 2>/dev/null | awk '/^\\s*[* ]\\s*[a-zA-Z0-9-]+:$/ { active=($1==\"*\"); gsub(/^[*[:space:]]+|:$/,\"\"); print $0 \"\\t\" (active ? 1 : 0) }'"]
command: [root.bar ? root.bar.omarchyPath + "/bin/omarchy-powerprofiles-list" : "omarchy-powerprofiles-list", "--active-state"]
stdout: StdioCollector { waitForEnd: true; onStreamFinished: root.updateProfiles(text) }
}