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