Guest User

Untitled

a guest
Sep 14th, 2011
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. test -f /usr/share/acpi-support/key-constants || exit 0
  4.  
  5. . /etc/default/acpi-support
  6. . /usr/share/acpi-support/power-funcs
  7. . /etc/default/acpi-support
  8.  
  9. for x in /tmp/.X11-unix/*; do
  10.     displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
  11.     getXuser;
  12.     if [ x"$XAUTHORITY" != x"" ]; then
  13.         export DISPLAY=":$displaynum"
  14.     . /usr/share/acpi-support/screenblank
  15.     motion                                # Заменить на своё
  16.     fi
  17. done
Advertisement
Add Comment
Please, Sign In to add comment