chiark / gitweb /
add notify-cmd wrapper
[bin.git] / notify-cmd
diff --git a/notify-cmd b/notify-cmd
new file mode 100755 (executable)
index 0000000..1db0cab
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+$@
+CODE="$?"
+if [ "$CODE" = 0 ]; then
+       notify-send -t 10000 "$1 succeeded"
+else
+       notify-send -t 10000 "$1 failed ($CODE)"
+fi
+exit $CODE