diff --git a/.local/scripts/power-profile-switch.sh b/.local/scripts/power-profile-switch.sh new file mode 100755 index 0000000..5520653 --- /dev/null +++ b/.local/scripts/power-profile-switch.sh @@ -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