antonmedv / countdown

Terminal countdown timer
MIT License
1.07k stars 110 forks source link

Added support to notify #21

Closed raffifu closed 3 years ago

raffifu commented 3 years ago

This PR closes #20

New File added:

Edited file:

func notify(title, body, icon string) {
    err := beeep.Notify(title, body, icon)
    if err != nil {
        panic(err)
    }
}

I also call notify() on main()

func main() {
    defer notify("Countdown App", "Timer Finished", "assets/bell.svg")
    ...
}
arnabsen1729 commented 3 years ago

Tested it on my Linux machine. Working like a charm. :+1:

Upd: I think having a notification bell sound would also be good.