diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-01-10 00:08:53 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-01-10 00:08:53 +0100 |
commit | a61487ea842a83b927c689f3b38fbb3edd289b8a (patch) | |
tree | 7060869e32b9ccada57c00b1732638d8248f5f25 /remote-notify-client.sh | |
parent | ad590c18ad260568e45701557fffb3a3e519dc22 (diff) | |
download | bin-a61487ea842a83b927c689f3b38fbb3edd289b8a.tar.gz bin-a61487ea842a83b927c689f3b38fbb3edd289b8a.tar.xz |
add a bunch of new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'remote-notify-client.sh')
-rwxr-xr-x | remote-notify-client.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |