~ubuntu-branches/ubuntu/oneiric/cairo-dock-plug-ins/oneiric-updates

« back to all changes in this revision

Viewing changes to xfce-integration/data/lock-screen.sh

  • Committer: Kees Cook
  • Date: 2011-08-11 23:17:39 UTC
  • mfrom: (20.1.1 cairo-dock-plug-ins)
  • Revision ID: kees@outflux.net-20110811231739-cteedan51tmdg77v
Tags: 2.4.0~0beta2-0ubuntu1
releasing version 2.4.0~0beta2-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
if test -n "`ps -ef | grep gnome-screensaver`"; then
 
4
        gnome-screensaver-command --lock
 
5
elif test -n "`ps -ef | grep xscreensaver`"; then
 
6
        xscreensaver-command -lock
 
7
else
 
8
        xlock
 
9
fi
 
10
 
 
11
exit 0