scripts: power-profile-switch.sh

This commit is contained in:
Joseph Ferano 2025-11-16 15:14:39 +07:00
parent 3c6e2521b0
commit 95c69be2c6

View File

@ -0,0 +1,9 @@
#!/bin/bash
AC_STATE=$(cat /sys/class/power_supply/AC0/online)
if [ "$AC_STATE" -eq 1 ]; then
asusctl profile -P Balanced
else
asusctl profile -P Quiet
fi