aboutsummaryrefslogtreecommitdiff
path: root/xsuspend
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-21 10:53:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-21 10:53:51 -0300
commitd751df69835f3b280c9e441c1e1897203453da0c (patch)
tree9da75083d2f5cd8f3e282cea0b18055615358e15 /xsuspend
parent42a66832752eb4e93bc32714cd6b5984d8f65872 (diff)
downloadutils-x11-d751df69835f3b280c9e441c1e1897203453da0c.tar.gz
utils-x11-d751df69835f3b280c9e441c1e1897203453da0c.tar.bz2
Comments on xhibernate and xsuspend
Diffstat (limited to 'xsuspend')
-rwxr-xr-xxsuspend7
1 files changed, 7 insertions, 0 deletions
diff --git a/xsuspend b/xsuspend
index 0f8c1ed..fbc400c 100755
--- a/xsuspend
+++ b/xsuspend
@@ -3,7 +3,14 @@
# Activate software suspend
#
+# Avoid sensitive stuff to remain on clipboard
echo $RANDOM | xclip
+
+# Lock the screen
xlock
+
+# Wait
sleep 2
+
+# Suspend
sudo pm-suspend