nsbin/acpi-lid-close
Nico Schottelius 6d38c15a70 add script to turn off display when lid closed
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-07-09 17:52:05 +02:00

12 lines
322 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"
# sleep 2
# su nico -c "DISPLAY=:0.0 xset dpms force off"
# sleep 2
# su nico -c "DISPLAY=:0.0 xset dpms force off"
# sleep 2
# su nico -c "DISPLAY=:0.0 xset dpms force off"
fi