desktop2gotify

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 8 Imported by: 0

README

Desktop notifications to Gotify, Matrix or Webhook

Patreon PayPal Liberapay

That tool will read your desktop notifications with DBus and send them to your gotify server or webhook url or matrix.org HomeServer

Usage

NOTE: you don't need to set all arguments, use only required, eg: if you want to use gotify, set --gotify- prefixied args

$ desktop2gotify --help
Usage of desktop2gotify:
  --debug
        Debug log
  --gotify-token string
        Gotify Application Token
  --gotify-url string
        Gotify API url (default "http://localhost")
  --ignore string
        List of apps to ignore, divided by comma, eg: chrome,firefox,slack
  --matrix-hs string
        Matrix.org homeserver (default "https://matrix.org")
  --matrix-room string
        Matrix room id or alias, eg: #myroom:matrix.org
  --matrix-token string
        Matrix access token
  --matrix-user string
        Matrix user, eg: @user:matrix.org
  --webhook-url string
        Webhook API url

Example:

desktop2gotify --ignore chromium,hubstaff --gotify-url http://localhost --gotify-token Xz4KiNRROztPCOi

Run

Golang
go install gitlab.com/rakshazi/desktop2gotify
desktop2gotify --help
Binary
curl https://gitlab.com/rakshazi/desktop2gotify/-/jobs/artifacts/master/raw/app?job=binary --output desktop2gotify
chmod +x ./desktop2gotify
./desktop2gotify
systemd
  1. Create file ~/.config/systemd/user/desktop2gotify.service (may be you need to create dirs too, varies by linux distro)
  2. Copy systemd.service content to that file
  3. Replace /path/to/desktop2gotify to the path of your desktop2gotify binary
  4. Replace PUT_YOUR_ARGUMENTS_HERE with your configuration (check desktop2gotify -h for all available options)
  5. Run systemctl --user daemon-reload; systemctl --user enable desktop2gotify; systemctl --user start desktop2gotify
  6. Check logs with journalctl --user -u desktop2gotify

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL