Fix laptop lid service

This commit is contained in:
2021-10-29 17:45:05 +02:00
parent 8d6dc18bb0
commit 3b24d2bac4

View File

@@ -4,5 +4,7 @@ After=windowmanager.target
ConditionPathExists=%h/.var/run/features/machine_is_laptop ConditionPathExists=%h/.var/run/features/machine_is_laptop
[Service] [Service]
Type=oneshot
ExecStart=/usr/bin/env bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup' ExecStart=/usr/bin/env bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup'
RemainAfterExit=true
PassEnvironment=DISPLAY PassEnvironment=DISPLAY