nsbin/acpi-lid-close
Nico Schottelius 9468f9b060 update
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-26 23:28:38 +02:00

8 lines
184 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"
else
su nico -c "DISPLAY=:0.0 xset dpms force on"
fi