systemd-ac-power Command Examples

Report whether the computer is connected to an external power source. More information: https://www.freedesktop.org/software/systemd/man/systemd-ac-power.html.

systemd-ac-power

systemd-ac-power --verbose