From 7126f37ae6541bcf8d5b6f2e82c84117113b36c7 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Mon, 15 May 2023 08:06:59 +0200 Subject: [PATCH] systemd-ac-power: add page (#10196) --- pages/linux/systemd-ac-power.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/linux/systemd-ac-power.md 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`