Created
November 7, 2014 23:32
-
-
Save kernelsmith/fbc68fce2ba8ed67bbe8 to your computer and use it in GitHub Desktop.
irssi irc notifications over ssh & dbus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #07-17.26.09 < nsh> locally: | |
| #07-17.26.09 < nsh> (trusty)xeb@localhost:~/code/irssi-libnotify$ ssh -f -N -q -R 1337:localhost:1337 nsh@ch0wn.org && ./notify-listener.py & nc -kl 1337 | while read L; do | |
| # DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-L4FcbXHr0c,guid=3af4775950b0a0e542bf161c5455fea3 dbus-send --session /org/irssi/Irssi org.irssi.Irssi.IrssiNotify | |
| # string:"Message from t3hmd4rkw4bs" string:"$L"; done | |
| #07-17.26.37 < nsh> when i just changed the command in notify.pl to: echo "$summary: $message" | nc localhost 1337 | |
| #07-17.27.35 < nsh> the messy stuff is just what irssi-notifier.sh does from https://code.google.com/p/irssi-libnotify | |
| #07-17.27.50 < nsh> (after the ssh command) | |
| ssh -f -N -q -R 1337:localhost:1337 nsh@ch0wn.org && ./notify-listener.py & nc -kl 1337 | while read L; do | |
| DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-L4FcbXHr0c,guid=3af4775950b0a0e542bf161c5455fea3 dbus-send --session /org/irssi/Irssi org.irssi.Irssi.IrssiNotify | |
| string:"Message from t3hmd4rkw4bs" string:"$L" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment