[Unit] BindsTo=autostart.target After=windowmanager.target ConditionPathExists=%h/.var/run/features/machine_is_laptop [Service] ExecStart=/usr/bin/env bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup' PassEnvironment=DISPLAY