Files
dotfiles/autostart/services/laptop-lid.service

11 lines
302 B
SYSTEMD
Raw Normal View History

[Unit]
BindsTo=autostart.target
2020-12-21 17:57:18 +01:00
After=windowmanager.target
ConditionPathExists=%t/features/machine_is_laptop
[Service]
2021-10-29 17:45:05 +02:00
Type=oneshot
2024-05-04 21:36:12 +02:00
ExecStart=/usr/bin/env bash -c 'grep "^LID.*enabled" /proc/acpi/wakeup && echo " LID" | sudo tee /proc/acpi/wakeup || true'
2021-10-29 17:45:05 +02:00
RemainAfterExit=true
2021-01-30 21:06:08 +01:00
PassEnvironment=DISPLAY