File: screenblank.sh

package info (click to toggle)
acpi-support 0.137-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,008 kB
  • ctags: 9
  • sloc: sh: 1,330; makefile: 58; ansic: 51
file content (15 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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