diff --git a/pages/linux/systemd-ac-power.md b/pages/linux/systemd-ac-power.md new file mode 100644 index 000000000..a17cf26f1 --- /dev/null +++ b/pages/linux/systemd-ac-power.md @@ -0,0 +1,12 @@ +# systemd-ac-power + +> Report whether the computer is connected to an external power source. +> More information: . + +- Silently check and return a 0 status code when running on AC power, and a non-zero code otherwise: + +`systemd-ac-power` + +- Additionally print `yes` or `no` to `stdout`: + +`systemd-ac-power --verbose`