# /etc/acpi/events/ac # Called when the user connects ac power to us # event=ac_adapter.* action=/etc/acpi/power.sh