# ABOUTME: Power actions — reboot and shutdown via loginctl.
# ABOUTME: Simple wrappers around system commands for the greeter UI.

import subprocess


def reboot() -> None:
    """Reboot the system via loginctl."""
    subprocess.run(["loginctl", "reboot"], check=True)


def shutdown() -> None:
    """Shut down the system via loginctl."""
    subprocess.run(["loginctl", "poweroff"], check=True)
