telephant/notifications.go

17 lines
239 B
Go
Raw Normal View History

// +build linux darwin
package main
import (
"fmt"
"github.com/gen2brain/beeep"
)
func notify(title string, body string) {
err := beeep.Notify(title, body, "")
if err != nil {
fmt.Println("Error sending notification:", err)
}
}