fan-profile: add state path and profile→strategy mapping (unused yet)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-05-01 11:05:14 -07:00
parent ef4d8cb44d
commit b04357de87
+11
View File
@@ -1,5 +1,16 @@
#!/bin/bash #!/bin/bash
STATE_FILE="${XDG_STATE_HOME:-$HOME/.local/state}/fan-profile-auto"
map_profile_to_strategy() {
case "$1" in
power-saver) echo lazy ;;
balanced) echo medium ;;
performance) echo agile ;;
*) return 1 ;;
esac
}
if [ "$1" = "--menu" ]; then if [ "$1" = "--menu" ]; then
CHOICE=$(fw-fanctrl print list 2>/dev/null \ CHOICE=$(fw-fanctrl print list 2>/dev/null \
| grep "^-" \ | grep "^-" \