aboutsummaryrefslogtreecommitdiff
path: root/xhibernate
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 /xhibernate
parent42a66832752eb4e93bc32714cd6b5984d8f65872 (diff)
downloadutils-x11-d751df69835f3b280c9e441c1e1897203453da0c.tar.gz
utils-x11-d751df69835f3b280c9e441c1e1897203453da0c.tar.bz2
Comments on xhibernate and xsuspend
Diffstat (limited to 'xhibernate')
-rwxr-xr-xxhibernate7
1 files changed, 7 insertions, 0 deletions
diff --git a/xhibernate b/xhibernate
index 181a8d9..111c1fe 100755
--- a/xhibernate
+++ b/xhibernate
@@ -3,7 +3,14 @@
# Hibernate computer
#
+# Avoid sensitive stuff to remain on clipboard
echo $RANDOM | xclip
+
+# Lock the screen
xlock
+
+# Wait
sleep 2
+
+# Hibernate
sudo s2disk