Hard code ACPI lid name

This commit is contained in:
2024-05-04 21:36:12 +02:00
parent b9d59e8ecf
commit 6b8e016dd5
2 changed files with 1 additions and 3 deletions

View File

@@ -5,6 +5,6 @@ ConditionPathExists=%t/features/machine_is_laptop
[Service] [Service]
Type=oneshot 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 || true' ExecStart=/usr/bin/env bash -c 'grep "^LID.*enabled" /proc/acpi/wakeup && echo " LID" | sudo tee /proc/acpi/wakeup || true'
RemainAfterExit=true RemainAfterExit=true
PassEnvironment=DISPLAY PassEnvironment=DISPLAY

View File

@@ -28,8 +28,6 @@ export LC_COLLATE=C
export GOPATH=~/.go export GOPATH=~/.go
export PATH="$PATH:$(go env GOPATH)/bin" export PATH="$PATH:$(go env GOPATH)/bin"
export ACPI_LID_NAME=LID
export QT_QPA_PLATFORMTHEME=qt5ct export QT_QPA_PLATFORMTHEME=qt5ct
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"