Code Monkey home page Code Monkey logo

Comments (3)

sardemff7 avatar sardemff7 commented on May 29, 2024

Glad to hear you like eventd so far.

Pausing

This part is in the context of eventd as a whole, not just as a notification daemon.

Pausing is on my TODO list for a long time now, and I have thought a lot on how to integrate it to eventd’s overall design.
The feature even existed at some point but it didn’t fit well with the asynchronous and distributed flow.
I have one piece of the plan done already for quite some time now, which are flags.
My latest idea is to have actions delayed by flags presence/absence. So an example configuration would be:

notification.action:
    [Action]
    Name=notification
    DelayedIf=afk;
    [Notification]

(Actual key names and usage are WIP)

And you’d have an eventdctl flags add afk in your screensaver script or whatever. (I also want to implement a [Flags] action so you could just add/remove the flag based on some event, that could propagate and stuff.)

History

This part is about the notification daemon (libnotify) feature only and would require adjustments to be usable with notifications from other sources.

As of history, this is more or less a non-goal. But I hope that some time in the future I will be able to add some kind of “notification center”.
However, you can easily use the file plugin to create a JSON list of notifications. You can find an example here (not fully complete, it lacks a few hints that you may use). It uses rofi as a menu to manage the history. You can of course just have your own script read the history file, drop the line and pop the notification back (which will re-write it to the history file, as the file plugin just appends text, it doesn’t understand it).

from eventd.

ralismark avatar ralismark commented on May 29, 2024

From what I can tell from the installed headers, there's no public API to interact with flags. Am I missing something?

from eventd.

sardemff7 avatar sardemff7 commented on May 29, 2024

You’re right, you can only interact with them via eventdctl flags currently. The core can touch them, and the [Flags] action would be in the core, probably (or in some plugin while I add API for that).
Do you have a plugin in mind that you (will) need flags API for?

from eventd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.