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:
@@ -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 "^-" \
|
||||||
|
|||||||
Reference in New Issue
Block a user