Advertisement
Guest User

Untitled

a guest
Jan 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. screensvronlock=/tmp/screensvronlock
  2.  
  3. if [ -f $screensvronlock ];
  4. then
  5. rm $screensvronlock
  6. # notify-send "Screen on." -i /usr/share/icons/gnome/48x48/devices/display.png
  7. else
  8. touch $screensvronlock
  9. sleep .6
  10. while [ -f $screensvronlock ]
  11. do
  12. xscreensaver-command -activate
  13. sleep 2
  14. done
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement