/acpi/screenblank.sh
http://github.com/brinkman83/bashrc · Shell · 15 lines · 11 code · 3 blank · 1 comment · 4 complexity · ce58b608d876edc5dd461440d77d7b22 MD5 · raw file
- #!/bin/sh
- test -f /usr/share/acpi-support/key-constants || exit 0
- . /etc/default/acpi-support
- . /usr/share/acpi-support/power-funcs
- for x in /tmp/.X11-unix/*; do
- displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
- getXuser;
- if [ x"$XAUTHORITY" != x"" ]; then
- export DISPLAY=":$displaynum"
- . /usr/share/acpi-support/screenblank
- fi
- done