Created
October 18, 2012 12:14
-
-
Save XayOn/3911423 to your computer and use it in GitHub Desktop.
Irssi remote notifications with irssi-dbus
This file contains 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
# Call me with your ssh options (and probably DISPLAY=YOUR_REMOTE_DISPLAY) | |
# This is actually NOT the way, but the dbus-monitor approach + ssh might come handy. | |
ssh $@ dbus-monitor --session|while read line; do echo $line | command grep ": " &>/dev/null && notify-send "Irssi" "$(echo $line|sed s/\"//g|sed s/string//g)"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment