growl/libnotify notifications for remote irssi (w/ fnotify)
This commit is contained in:
parent
1bea7059b6
commit
55b9b72fb4
18
bin/ircnotify.sh
Executable file
18
bin/ircnotify.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
notify()
|
||||||
|
{
|
||||||
|
heading=$1
|
||||||
|
message=$2
|
||||||
|
if [ `uname` = "Darwin" ]; then
|
||||||
|
growlnotify -t ${heading} -m ${message}
|
||||||
|
else
|
||||||
|
notify-send ${heading} ${message}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
(ssh irc.walkah.net -o PermitLocalCommand=no \
|
||||||
|
": > .irssi/fnotify ; tail -f .irssi/fnotify " | \
|
||||||
|
while read heading message; do \
|
||||||
|
notify "${heading}" "${message}"; \
|
||||||
|
done)&
|
||||||
|
|
@ -1,2 +1,7 @@
|
|||||||
GatewayPorts yes
|
GatewayPorts yes
|
||||||
HashKnownHosts no
|
HashKnownHosts no
|
||||||
|
|
||||||
|
Host irc.walkah.net
|
||||||
|
Hostname irc.walkah.net
|
||||||
|
LocalCommand ~/bin/ircnotify.sh
|
||||||
|
PermitLocalCommand yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user