Add workaround for old ubuntu systemd

This commit is contained in:
2021-01-27 16:38:00 +01:00
parent 18833de76b
commit 956e7abf0d
8 changed files with 19 additions and 8 deletions

View File

@@ -1,8 +1,7 @@
[Unit]
BindsTo=autostart.target
After=windowmanager.target
ConditionEnvironment=MACHINE_TYPE=laptop
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'