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)
}
err := beeep.Notify("Title", "Message body", "assets/information.png")
if err != nil {
panic(err)
}
err := beeep.Alert("Title", "Message body", "assets/warning.png")
if err != nil {
panic(err)
}