A Clojure interface to the Java AWT SystemTray facilities. This strives to provide a simple, functional way to interact with the system tray on various platforms.
For full documentation see http://mbsmith.github.io/clj-systemtray
To obtain and use this in your project (via leiningen 2) put the include the following in your project.clj
[clj-systemtray "0.2.1"]
Usage is pretty straight forward. Menus are described using composable functions.
(popup-menu
(menu-item :title fcn)
(menu-item "another title" another-fn)
(separator)
(menu "more options"
(menu-item "deep item 1" fcn)
(menu-item "deep item 2" fcn)
(separator)
(menu-item :deep-item-3 fcn))
(menu-item :exit-title exit-fn))
This can then be used with the tray icon like so:
(make-tray-icon! path-to-icon popup-menu)
Copyright © 2014 Micheal Smith
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.