diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-01-16 18:43:24 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-01-16 18:43:24 +0100 |
commit | 7026e1fed7dbcb23a6e85c0494484e6636388006 (patch) | |
tree | 9820d72a1630daafdb51aa8f0dead4dd25938f37 /notificator.go |
[feat] Dummy implementation of the systray
Diffstat (limited to 'notificator.go')
-rw-r--r-- | notificator.go | 23 |
1 files changed, 23 insertions, 0 deletions
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) + } +} |