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 "^-" \