New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose commands to the command line & remove keyboard support #284
Comments
I just wanted to make this request. Additionally, I believe that the majority of |
I guess this needs an update. We talked this over on IRC and we all agree that keyboard management is out of scope. We decided on the following: After the release of 2.0 which should be relatively soon, we'll add a new control interface to dunst through dbus outside of the It is subject to be decided whether we will develop a new command line tool to send commands to dunst(e.g. After that is working properly we will deprecate the keyboard support, perhaps by making a minor release that disables it by default and warns the user if they are enabled, and entirely remove it in the 3.0 release. That is the basic idea at least. The rationale of this is that, as mentioned above, handling keyboard events is the job of the window manager or a hotkey daemon and definitely not relevant to a notification daemon. Please note that this is still very early and very much subject to change. I'm open to discussion about any part of this plan(even if you disagree entirely, feel free to post your opinion). |
Hello, I'd love to be able to close notifications via the command line. Not globally but targeted by a specific ID or text content. As a power user tool, I think it'd make perfect sense. Would you be willing to consider that use case? I've been trying to find a workaround, but it seems pretty undoable at the moment. Unless I'm mistaken the dunst process opens a unique window upon which not much info can be derived with |
You can already target ids with dunstifys That said, I'd be interested to know the use case for this. It could be done once all this is implemented if it's useful in some way. |
Excellent! Thanks!! My use case is a bit out of the ordinary I confess. I've implemented a couple of scripts to handle my daily routine (too much on my plate), and not satisfied with existing programs.
I intend to apply the same design and centralize other background checks, such as server monitoring, triggered business rules, etc. (a quick POC here) My window manager is If you're curious, here is a screenshot of my reminder tool: Basically I want this tool to be extremely nagging by design. In this screenshot, once I type |
Going a bit off topic - but I took a quick glance at your program and you'd probably benefit from using a proper libnotify implementation rather than (ab)using From that libraries docs for example, you can directly update notifications and close them via simply |
Thanks for the heads up! I didn't realize that abstraction was available, sorry for the noise! |
I'd also like to keep my dunst bindings in sxhkd config. Will there be work on this? |
@bebehei seems inactive, or at least hasn't responded to my pings for a while. It's been a busy time recently so no specific promises, but since it's in a pretty good state currently I'm planning to take over the PR and finish it soon. |
Hide the notification as soon as the B key is released. This is kind of neat, but we'll have to see if it's actually convenient. If it turns out it is, there are some kinks to work out. Also see <dunst-project/dunst#284>.
Implemented with #651 . |
please consider exposing dunst commands
ideally through the command line interface
(or by extending the DUNST_COMMAND_* format)
I also think key bindings are out of scope for program like dunst
(better to let a dedicated key binder handle that)
in any case
dunst would be more useful if the same commands
which presently require dunst key bindings
were also accessible without key bindings
(so scripts can simply issue commands)
thanks :}
The text was updated successfully, but these errors were encountered: