Files
archypr/scripts/powerprofiles-list

8 lines
208 B
Bash
Executable File

#!/bin/bash
# archypr:summary=Returns a list of all the available power profiles on the system.
powerprofilesctl list |
awk '/^\s*[* ]\s*[a-zA-Z0-9\-]+:$/ { gsub(/^[*[:space:]]+|:$/,""); print }' |
tac