Skip to content

Commit

Permalink
fixing readme more...
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanharper committed May 25, 2013
1 parent 374c38b commit fd6a5e0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Expand Up @@ -13,20 +13,22 @@ $

To use lnotify is easy, just require it on Lua, like this:

<pre>
$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require("notify")
> n1 = notify.new("Lua libnotify bind (level 1-> LOW)", "This is a test :D")
> notify.set_urgency(n1, 1)
> notify.set_appname(n1, "My Lua App")
> notify.show(n1);
&gt; require("notify")
&gt; n1 = notify.new("Lua libnotify bind (level 1-> LOW)", "This is a test :D")
&gt; notify.set_urgency(n1, 1)
&gt; notify.set_appname(n1, "My Lua App")
&gt; notify.show(n1);
</pre>


Look at test/ folder to see an example using emergency levels, icons, etc..

To install lnotify, just copy notify.so to your Lua library path, usually /usr/local/lib/lua/5.x/ , like:

$ sudo cp notify.so /usr/local/lib/lua/5.1/
<pre>$ sudo cp notify.so /usr/local/lib/lua/5.1/</pre>


Now, you can call lnotify from any Lua script, enjoy!

0 comments on commit fd6a5e0

Please sign in to comment.