on_ac_power (1) Linux Manual Page
NAME on_ac_power – test whether computer is running on AC power SYNOPSIS on_ac_power DESCRIPTION on_ac_power checks whether the system is running on abundant power (such as AC mains, an USB charger, etc), as opposed to battery power. OPTIONS None. EXIT STATUS 0 (true) System is on mains power 1 (false) System is not on mains…
