Files
Nomarchy/bin/nomarchy-powerprofiles-list
Bernardo Magri 33deeb494b initial commit
2026-04-01 17:06:01 +01:00

9 lines
249 B
Bash
Executable File

#!/bin/bash
# Returns a list of all the available power profiles on the system.
# Used by the Nomarchy Menu under Setup > Power Profile.
powerprofilesctl list |
awk '/^\s*[* ]\s*[a-zA-Z0-9\-]+:$/ { gsub(/^[*[:space:]]+|:$/,""); print }' |
tac