xiorcal / beeep

Go cross-platform library for sending desktop notifications and beeps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beeep

TravisCI Build Status AppVeyor Build Status GoDoc Go Report Card

beeep provides a cross-platform library for sending desktop notifications, alerts and beeps.

Installation

go get -u github.com/gen2brain/beeep

Examples

err := beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration)
if err != nil {
    panic(err)
}
err := beeep.Notify("Title", "Message body", "assets/icon128.png")
if err != nil {
    panic(err)
}
err := beeep.Alert("Title", "Message body", "assets/icon128.png")
if err != nil {
    panic(err)
}

macOS

For icons to show up when using Alert() or Notify(), you will need to bundle your application with a app icon.

About

Go cross-platform library for sending desktop notifications and beeps

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 100.0%