All Projects → jcgay → send-notification

jcgay / send-notification

Licence: MIT license
A toolbox in Java to send notifications (Growl, Snarl, Notification Center, notify-send, etc)

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects
Batchfile
5799 projects
shell
77523 projects

Projects that are alternatives of or similar to send-notification

notification-thing
Python-based implementation of Desktop Notifications Specification (notification-daemon)
Stars: ✭ 24 (-72.41%)
Mutual labels:  desktop-notifications
maven-notifier
Desktop notifications for Maven 3.x.
Stars: ✭ 71 (-18.39%)
Mutual labels:  desktop-notifications
toastify
🍞A commandline tool that shows desktop notifications using notify-rust
Stars: ✭ 60 (-31.03%)
Mutual labels:  desktop-notifications
pynotifier
Python notifications
Stars: ✭ 54 (-37.93%)
Mutual labels:  desktop-notifications
SomaFM
A simple Python 3.x terminal interface for streaming SomaFM
Stars: ✭ 27 (-68.97%)
Mutual labels:  desktop-notifications
Gallium
Build desktop applications in Go and HTML.
Stars: ✭ 3,694 (+4145.98%)
Mutual labels:  desktop-notifications
Pnotify
Beautiful JavaScript notifications with Web Notifications support.
Stars: ✭ 3,601 (+4039.08%)
Mutual labels:  desktop-notifications
ex unit notifier
Desktop notifications for ExUnit
Stars: ✭ 111 (+27.59%)
Mutual labels:  desktop-notifications

send-notification

A toolbox in Java to send notifications.

Usage

Add dependency with your favorite build tool.

Example with Maven:

    <dependencies>
     [...]
        <dependency>
            <groupId>fr.jcgay.send-notification</groupId>
            <artifactId>send-notification</artifactId>
            <version>0.16.0</version>
        </dependency>
     [...]
    </dependencies>

Get a notifier:

    Notifier notifier = new SendNotification()
        .setApplication(application)
        .initNotifier();

The application is not mandatory, you'll get a default one if it's not set.

Then send notification:

    try {
        notifier.send(notification);
    } finally {
        notifier.close;
    }

CLI

Download bundle, extract it, add the bin directory to your $PATH. For OS X users, you can use a brew formula here.

> send-notification -h

Usage: <main class> [options] notifier(s)
  Options:
    -h, --help
       show help
       Default: false
  * -i, --icon
       notification icon
    -l, --level
       notification level (INFO, WARNING, ERROR)
  * -m, --message
       notification message
    -s, --subtitle
       notification subtitle
  * -t, --title
       notification title
    -v, --version
       show version
       Default: false

(*) are mandatory parameters.

Example:

send-notification notifysend -m "Build success !" -t "maven-notifier" -i "success.png"

Available notifiers

Go to Wiki to read full configuration guide for each notifier.

Notifier Screenshot
Growl, for Windows and OS X. Growl
Snarl, for Windows Snarl
terminal-notifier, OS X terminal-notifier
notification center OS X (since Mavericks) notification-center
notify-send for Linux notify-send
SystemTray since Java 6 System Tray
Pushbullet pushbullet
Kdialog for KDE Kdialog
notifu for Windows notifu
AnyBar for OS X and Linux anybar
Toaster for Windows 8 toaster
Notify since Java 6 Notify
BurntToast for Windows 10 (NB must be enabled manually) BurntToast
Slack Slack

Build status

Build Status Coverage Status Quality Gate

Build

You will need Maven and a JDK 8. If your default JDK is higher than 8, Maven will use a configured toolchains.

mvn verify

Multiple VMs are available in vm for Windows, Linux and macOS to integrate with the various notifiers.

Release

mvn -B release:prepare release:perform
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].