add script to turn off display when lid closed
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
03aceb5618
commit
6d38c15a70
1 changed files with 12 additions and 0 deletions
12
acpi-lid-close
Executable file
12
acpi-lid-close
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
Loading…
Reference in a new issue