~qball/rofi-ntfy

Plugin that shows the last messages from a NTFY.sh server
521c6a8f — Dave Davenport 1 year, 11 months ago
Update readme formatting
2dcdfe3a — Dave Davenport 1 year, 11 months ago
Update readme formatting
222a8a1b — Dave Davenport 1 year, 11 months ago
Update readme

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~qball/rofi-ntfy
read/write
git@git.sr.ht:~qball/rofi-ntfy

You can also use your local clone with git send-email.

#Rofi ntfy plugin

This plugin connects to a (self hosted) ntfy.sh service and shows the last messages from one of more topics.

Currently limited interaction is possible, it mostly just shows the entries.

Run rofi like:

rofi -show ntfy -modes ntfy

screenshot

#Configure

In rofi's configuration file add the following section:

configuration {
    ntfy {
        // Do not add trailing '/'
        hostname: "https://ntfy.mydomain";
        // topics
        topics: ["work", "servers", "test"];
      }
  }

Or commandline:

rofi -ntfy-hostname "{url}" --ntfy-topics "work,servers" -show ntfy -modes ntfy

#Compilation

#Dependencies

Dependency Version
rofi 1.7.5-dev or higher
libcurl >= 4 (lower untested)
pkg-config
json-c >= 0.16

#Installation

rofi-ntfy uses autotools as build system. If installing from git, the following steps should install it:

$ autoreconf -i
$ mkdir build
$ cd build/
$ ../configure
$ make
$ make install

#Features

  • Async loading from (multiple) topics.
  • coloring 'priority' items.
  • 'click' support (via xdg-open).
  • Highlight items new since last view.

#ToDos

  • Tags.
  • Actions.