Comments (3)
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.
From what I can tell from the installed headers, there's no public API to interact with flags. Am I missing something?
from eventd.
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)
- eventd: incorrectly uses /run directory in absence of XDG_RUNTIME_DIR env variable HOT 3
- xcb-nd: artefacts around notification bubble HOT 8
- Text wrapping HOT 1
- eventd-0.23.0 doesn't build with meson>=0.42.0 HOT 1
- How to start eventd properly HOT 1
- eventd-master doesn't build with meson-0.44.0 HOT 2
- systemd unit broken (eventd-git arch linux) HOT 6
- eventd-0.24.0 fails test - ERROR:../eventd-0.24.0/src/libnkutils/tests/token.c:972:_nk_token_list_tests_func: assertion failed (result == data->result): ("1,00000" == "1.00000") HOT 3
- Feature request: Moving bubbles HOT 3
- AUR build fails HOT 3
- Settings ignored HOT 4
- Image options in eventd.conf are ignored. HOT 17
- Unicode problems on NixOS (glibc 2.26 - 2.27 locales incompatibility) HOT 7
- Release tarballs don't contain submodules HOT 1
- libeventd-plugin pkgconfig file no longer contains `pluginsdir` HOT 1
- Placement issue with Sway HOT 1
- eventd/eventd-git 0.27.0-1 fails to build with meson 0.56.0-1 on Arch HOT 5
- Fails to build from source with Meson 0.63.0 HOT 1
- Port to libsoup3 API HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventd.