]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Adds blanknot
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 9 May 2019 12:35:55 +0000 (09:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 9 May 2019 12:35:55 +0000 (09:35 -0300)
blanknot [new file with mode: 0755]

diff --git a/blanknot b/blanknot
new file mode 100755 (executable)
index 0000000..84872e8
--- /dev/null
+++ b/blanknot
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# Do not let the screen to be blank.
+# Useful while watching or contemplating something.
+#
+
+# Parameters
+INTERVAL="10"
+
+echo "Will virtually press the Ctrl key every $INTERVAL seconds."
+echo "Press Ctrl-C to exit."
+while true; do xdotool key ctrl; echo -n '.'; sleep $INTERVAL; done