acpi-lid-close 184 Bytes
Newer Older
1 2 3 4 5
#!/bin/sh

if grep -q closed /proc/acpi/button/lid/*/state; then
    sleep 3
    su nico -c "DISPLAY=:0.0 xset dpms force off"
Nico Schottelius's avatar
Nico Schottelius committed
6 7
else
    su nico -c "DISPLAY=:0.0 xset dpms force on"
8
fi