https://github.com/gen2brain/beeep
Go cross-platform library for sending desktop notifications, alerts and beeps
https://github.com/gen2brain/beeep
beep beeps notifications notify
Last synced: 8 months ago
JSON representation
Go cross-platform library for sending desktop notifications, alerts and beeps
- Host: GitHub
- URL: https://github.com/gen2brain/beeep
- Owner: gen2brain
- License: bsd-2-clause
- Created: 2017-12-11T09:14:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-16T21:00:08.000Z (over 1 year ago)
- Last Synced: 2025-04-11T17:49:25.924Z (9 months ago)
- Topics: beep, beeps, notifications, notify
- Language: Go
- Homepage:
- Size: 105 KB
- Stars: 1,547
- Watchers: 13
- Forks: 96
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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)
}
```