From 7026e1fed7dbcb23a6e85c0494484e6636388006 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 16 Jan 2018 18:43:24 +0100 Subject: [feat] Dummy implementation of the systray --- notificator.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 notificator.go (limited to 'notificator.go') diff --git a/notificator.go b/notificator.go new file mode 100644 index 0000000..f679468 --- /dev/null +++ b/notificator.go @@ -0,0 +1,23 @@ +package main + +import ( + "os" + "path" + "time" + + "github.com/0xAX/notificator" +) + +func notificate() { + // TODO: we need a proper icon + wd, _ := os.Getwd() + notify := notificator.New(notificator.Options{ + DefaultIcon: path.Join(wd, "mask.svg"), + AppName: "RiseupVPN", + }) + + for { + notify.Push("Donate", "Have you already donated to RiseupVPN?", "", notificator.UR_NORMAL) + time.Sleep(time.Minute * 5) + } +} -- cgit v1.2.3