mirror of
https://github.com/make-42/hayai.git
synced 2025-01-18 18:47:10 +01:00
13 lines
351 B
Go
13 lines
351 B
Go
//go:build linux || freebsd || netbsd || openbsd || illumos
|
|
// +build linux freebsd netbsd openbsd illumos
|
|
|
|
package beeep
|
|
|
|
// Alert displays a desktop notification and plays a beep.
|
|
func Alert(title, message, appIcon string) error {
|
|
if err := Notify(title, message, appIcon); err != nil {
|
|
return err
|
|
}
|
|
return Beep(DefaultFreq, DefaultDuration)
|
|
}
|