1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
## beeep
[](https://github.com/gen2brain/beeep/actions)
[](https://pkg.go.dev/github.com/gen2brain/beeep)
[](https://goreportcard.com/report/github.com/gen2brain/beeep)
`beeep` provides a cross-platform library for sending desktop notifications, alerts and beeps.
### Installation
go get -u github.com/gen2brain/beeep
### Build tags
* `nodbus` - disable `godbus/dbus` and use only `notify-send`
### Examples
```go
err := beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration)
if err != nil {
panic(err)
}
```
```go
err := beeep.Notify("Title", "Message body", "assets/information.png")
if err != nil {
panic(err)
}
```
```go
err := beeep.Alert("Title", "Message body", "assets/warning.png")
if err != nil {
panic(err)
}
```
|