]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Comments on xhibernate and xsuspend
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 21 Sep 2014 13:53:51 +0000 (10:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 21 Sep 2014 13:53:51 +0000 (10:53 -0300)
xhibernate
xsuspend

index 181a8d9169adf9308dd359c89a4d9355c48512d1..111c1fee4c095484b579d897835f23db0c406178 100755 (executable)
@@ -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
index 0f8c1ed9a1ea932213ef887ddee115f67874a105..fbc400c50c4ffa0880477e21a54e5e9c574708eb 100755 (executable)
--- 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