

Part 3: Read messages from server and send notifications If you click on the notification box you will activate Terminal. This should cause a notification message to appear on your screen and you will see the confirmation message * Notification delivered. terminal-notifier -title 'Title' -message 'This is a simple test message.' -activate Once the ruby-version is installed you can test it by typing the following in Terminal.
#Terminal notifier install#
#Terminal notifier how to#
The official readme from the developer should be good enough to show you how to install and use it. Terminal-notifier is a very useful tool that makes it easy to trigger OS X Notifications from Terminal and scripts. Part 2: Installing terminal-notifier on your Mac You can do this simply by repeating the command /script load. If you ever create your own script remember that you'll have to reload the script in irssi each time you have saved changes before irssi will execute the updates. Please type /help hilight in irssi for more details. If you didn't change the code this should be saved to the file ~/.irssi/fnotifyĮnsure this is working by having another irc user hilight you or send you a private message and then open /.irssi/fnotify to see if the message was written to it.īy default it's likely that your IRC username trigger hilights, but you can also add other terms it should match. Irssi should now begin to write private messages and hilights you receive to the log file. In irssi, load your script by typing /script load.Continue irssi from an already existing screen session or start irssi.Copy and paste the code from into the file.Go to ~/.irssi/scripts (Create any missing folders).We'll use fnotify in this walktrough, but feel free to create your own script that will retrive what you want it to retrieve.įnotify was authored by Thorsten Leemhuis and released under the GNU General Public License. The first thing we need is a script for irssi that will write what we want to display in the notification center to a file on the remote server. Part 1: Writing messages to file on a remote server

Basic knowledge on the above terms and programs including Terminal.You use an ssh key to connect to the remote server (For Part 4 atleast).Remote server running a screen session with irssi.We assume that you have the following knowledge and tools: Questions and suggestions for improvements.Part 3: Read messages from server and send notifications.Part 2: Installing terminal-notifier on your Mac.Part 1: Writing messages to file on a remote server.While this is a guide on how to make it work with irssi you can imagine all the possibilties this opens up! You could for instance set up a task on your server that logs certain error messages from your server log files etc. We will also explain how the process can be automatically started each time you log in to your Mac and ensure the connection to the server is kept alive.
#Terminal notifier mac os x#
This guide will explain how you can make irc messages in a screen on a remote server appear in your Mac OS X Lion Notification Center with the help of terminal-notifier.
