summaryrefslogtreecommitdiffstats
path: root/irssi_notify.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-04-13 21:40:12 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-04-13 21:40:12 +0200
commitc11ef74879171dc631ceb227e53d6403719b5c38 (patch)
tree891be7d325c05b4dc12d407481f87140f3af74c5 /irssi_notify.sh
parentb7de185610d36aa373dadfb35ed131e648f6fde2 (diff)
downloadbin-c11ef74879171dc631ceb227e53d6403719b5c38.tar.gz
bin-c11ef74879171dc631ceb227e53d6403719b5c38.tar.xz
remove irssi_notify.sh; replaced by remote-notify-client.sh
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'irssi_notify.sh')
-rwxr-xr-xirssi_notify.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/irssi_notify.sh b/irssi_notify.sh
deleted file mode 100755
index de3d387..0000000
--- a/irssi_notify.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-[[ -z $DISPLAY ]] && exit 1;
-
-exec 0<&-
-
-ssh mistral 'tail -f -n0 ~/.irssi/fnotify' |
- sed -ru "
- s/&/\&amp;/g;
- s/</\&lt;/g;
- s/>/\&gt;/g;
- s%(#[a-zA-Z]+ )&lt;([^>]{0,10})&gt;%\1<b>\2</b> %g
- s%(https?://[^ ]+\.[a-zA-Z]{1,3})%<a href=\"\1\">\1</a>%g;
- s%([a-zA-Z0-9+_-]+@[^ ]+\.[a-zA-Z]{1,3})%<a href=\"mailto:\1\">\1</a>%g;" |
- while read heading message; do
- if [[ -n $heading ]]; then
- ssh mistral 'echo "" > ~/.irssi/fnotify';
- ossplay ~/misc/High_Bee-Public_D-135.wav
- notify-send -t 5000 -- "${heading}" "${message}";
- fi
- done