aboutsummaryrefslogtreecommitdiff
path: root/xhibernate
diff options
context:
space:
mode:
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