commands.sh

systemd-ac-power

linux

Report whether the computer is connected to an external power source.

More info →

Options (1)

-v, --verboseboolean

Additionally print `yes` or `no` to `stdout`

Example: systemd-ac-power {{[-v|--verbose]}}

Examples (2)

Silently check and return a 0 status code when running on AC power, and a non-zero code otherwise

Additionally print `yes` or `no` to `stdout`

systemd-ac-power [-v|--verbose]
made by @shridhargupta | data from tldr-pages