From b04357de8787ab6566e2667e5baad639e33a18f5 Mon Sep 17 00:00:00 2001 From: funman300 Date: Fri, 1 May 2026 11:05:14 -0700 Subject: [PATCH] =?UTF-8?q?fan-profile:=20add=20state=20path=20and=20profi?= =?UTF-8?q?le=E2=86=92strategy=20mapping=20(unused=20yet)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- scripts/fan-profile.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/fan-profile.sh b/scripts/fan-profile.sh index 9540d15..5786976 100755 --- a/scripts/fan-profile.sh +++ b/scripts/fan-profile.sh @@ -1,5 +1,16 @@ #!/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 CHOICE=$(fw-fanctrl print list 2>/dev/null \ | grep "^-" \