Skip to content

Instantly share code, notes, and snippets.

@code-later
Created September 3, 2014 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save code-later/dbc3e3bee4d08b3ade2f to your computer and use it in GitHub Desktop.
Save code-later/dbc3e3bee4d08b3ade2f to your computer and use it in GitHub Desktop.
OS X Notification Center for mcabber
#!/usr/bin/env ruby
require 'logger'
require 'terminal-notifier'
type, direction, jid = ARGV
if type == 'MSG' && direction == 'IN'
TerminalNotifier.notify "Message from #{jid}",
group: jid,
title: 'mcabber'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment