File: README.md

package info (click to toggle)
golang-github-0xax-notificator 0.0~git20210731.c42e3d4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 136 kB
  • sloc: makefile: 3
file content (49 lines) | stat: -rw-r--r-- 825 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
notificator
===========================

Desktop notification with Golang for:

  * Windows with `growlnotify`;
  * Mac OS X with `terminal-notifier` (if installed) or `osascript` (native, 10.9 Mavericks or Up.);
  * Linux with `notify-send` for Gnome and `kdialog` for Kde.

Usage
------

```go
package main

import (
  "github.com/0xAX/notificator"
)

var notify *notificator.Notificator

func main() {

  notify = notificator.New(notificator.Options{
    DefaultIcon: "icon/default.png",
    AppName:     "My test App",
  })

  notify.Push("title", "text", "/home/user/icon.png", notificator.UR_CRITICAL)
}
```

TODO
-----

  * Add more options for different notificators.

Сontribution
------------

  * Fork;
  * Make changes;
  * Send pull request;
  * Thank you.

author
----------

[@0xAX](https://twitter.com/0xAX)