aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xxhibernate7
-rwxr-xr-xxsuspend7
2 files changed, 14 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
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