Commit 6d38c15a authored by Nico Schottelius's avatar Nico Schottelius

add script to turn off display when lid closed

Signed-off-by: default avatarNico Schottelius <nico@brief.schottelius.org>
parent 03aceb56
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment