nsbin/acpi-lid-close
Nico Schottelius a079f786d7 --debug
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-07-09 17:52:22 +02:00

6 lines
130 B
Bash
Executable file

#!/bin/sh
if grep -q closed /proc/acpi/button/lid/*/state; then
sleep 3
su nico -c "DISPLAY=:0.0 xset dpms force off"
fi