25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/usr/bin/env bash
-
- # 0 = Normal/Balanced
- # 1 = Boost
- # 2 = Silent.
-
- MODELIST=("Balanced" "Boost" "Silent")
- INTERFACE="/sys/devices/platform/asus-nb-wmi/throttle_thermal_policy"
- CURRENT_MODE=$(cat ${INTERFACE})
- MODE=${CURRENT_MODE}
-
- if [[ ! ${1} ]]; then
- [[ ${MODE} == 2 ]] && MODE=0 || let MODE+=1
- else
- MODE=${1}
- fi
-
- echo ${MODE} > ${INTERFACE}
-
- CHECK_MODE=$(cat ${INTERFACE})
-
- notify-send "Fan mode changed" "${MODELIST[${CURRENT_MODE}]} -> ${MODELIST[${CHECK_MODE}]}"
-
|