PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/acpi/screenblank.sh

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