#!/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