daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Aug 16th, 2015 200 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. screenOffLockFile=/tmp/screen-off-lock
  3.  
  4. if [ -f $screenOffLockFile ];
  5. then
  6.         rm $screenOffLockFile
  7. #       notify-send "Screen on." -i /usr/share/icons/gnome/48x48/devices/display.png
  8. else
  9.         touch $screenOffLockFile
  10.         sleep .5
  11.         while [ -f  $screenOffLockFile ]
  12.         do
  13.                 xset dpms force off
  14.                 sleep 2
  15.         done
  16.         xset dpms force on
  17. fi
RAW Paste Data
Top