]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Adds xalarm
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 16 Sep 2017 14:55:18 +0000 (11:55 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 16 Sep 2017 14:55:18 +0000 (11:55 -0300)
xalarm [new file with mode: 0755]

diff --git a/xalarm b/xalarm
new file mode 100755 (executable)
index 0000000..2eac2a5
--- /dev/null
+++ b/xalarm
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# Simple alarm applicaton
+# See discussion at https://www.reddit.com/r/Gentoo/comments/1rryh1/kalarm_replacement/
+#
+
+# Delay
+DELAY="${1:-10m}"
+
+# Message
+shift
+MESSAGE="${*:-Alarm!}"
+
+sleep $DELAY
+xmessage $MESSAGE