Closed raffifu closed 3 years ago
This PR closes #20
New File added:
assets/bell.svg
Edited file:
README.md
main.go
beeep
notify()
func notify(title, body, icon string) { err := beeep.Notify(title, body, icon) if err != nil { panic(err) } }
I also call notify() on main()
main()
func main() { defer notify("Countdown App", "Timer Finished", "assets/bell.svg") ... }
Tested it on my Linux machine. Working like a charm. :+1:
Upd: I think having a notification bell sound would also be good.
This PR closes #20
New File added:
assets/bell.svg
=> notification icon (downloaded from freepik)Edited file:
README.md
=> add notification preview and credit for freepik iconmain.go
=> importbeeep
and add functionnotify()
detailed belowI also call
notify()
onmain()