From a61487ea842a83b927c689f3b38fbb3edd289b8a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 10 Jan 2014 00:08:53 +0100 Subject: add a bunch of new scripts Signed-off-by: Florian Pritz --- remote-notify-client.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 remote-notify-client.sh (limited to 'remote-notify-client.sh') diff --git a/remote-notify-client.sh b/remote-notify-client.sh new file mode 100755 index 0000000..a95c9e7 --- /dev/null +++ b/remote-notify-client.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +[[ -z $DISPLAY ]] && exit 1; + +exec 0<&- + +sup ssh mistral 'socat unix-connect:notify.sock stdout' | + while read heading message; do + if [[ -n $heading ]]; then + notify-send -t 5000 -- "${heading}" "${message}"; + fi + done -- cgit v1.2.3-24-g4f1b