beeep
provides a cross-platform library for sending desktop notifications, alerts and beeps.
go get -u github.com/gen2brain/beeep
nodbus
- disablegodbus/dbus
and use onlynotify-send
err := beeep.Beep(beeep.DefaultFreq, beeep.DefaultDuration)
if err != nil {
panic(err)
}
//go:embed testdata/info.png
var icon []byte
err := beeep.Notify("Title", "Message body", icon)
if err != nil {
panic(err)
}
beeep.AppName = "My App Name"
err := beeep.Alert("Title", "Message body", "testdata/warning.png")
if err != nil {
panic(err)
}