Skip to content

Instantly share code, notes, and snippets.

@XayOn
Created October 18, 2012 12:14
Show Gist options
  • Save XayOn/3911423 to your computer and use it in GitHub Desktop.
Save XayOn/3911423 to your computer and use it in GitHub Desktop.
Irssi remote notifications with irssi-dbus
# 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