-
Notifications
You must be signed in to change notification settings - Fork 351
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
Allow customization of direction of a sequence notifications #1438
Comments
The sort option is your friend :)
|
Ah, thanks — my dunst (1.9.0) only has true/false for that option. I guess I will need to wait for a newer one to percolate through Debian packages. |
Re-opening this, since I built latest dunst (v1.12.1) and, as I understand it, I still cannot achieve what I want. If I use As far as I can tell, the documentation is wrong, in this respect? But, as described before, with
and with Or am I misunderstanding something, here? |
Looking at the source it seems like maybe the "automatically reversed" behavior only applies to |
In fact, applying this small diff (which in my mind makes it do what the docs say) does make it do what I want.
Though of course, that changes behavior for existing users. So maybe it would be better to have some "id-reversed" sort order? |
After using this a bit more, I realize that the 'close' action now closes the newest item rather than the expected oldest, since the order of the queue is reversed. I made another patch locally to account for that, but I wonder if it needs a more full solution, where the display order of notifications is kept separate from the chronological order, or the "which should be closed next by default" order. Not sure what the overall best approach is, though I'm happy to provide my patch that makes it work reasonably well for me. Generally, there's a bit of a confused presentation of these issues in the dunst docs; for instance |
thanks for pointing this out. the close action closes the notification at the top of the queue and I would prefer to keep compatibility. maybe we can add a dunstctl close --oldest flag? also you can specify the id of the notification you want to close. |
Yes, I saw that, but I could not find a way to get a list of all the IDs of displayed notifications. Is there a way to do that? I saw In other words, if I wanted to write a script to close the lowest ID, how would I find what that is? |
Ops you arw right. We have #1348 still pending |
I recently upgraded dunst, and found that some functionality with the old
geometry = ...
syntax seems to be gone.Here's what I want:
I put my notifications in the bottom-right of the screen.
Further, I want each new notification to stack on top of the existing ones.
So, after 3 notifications, it should look like this:
That way, if I click on a notification with my mouse, I can be 100% confident that I will get the one I want.
Currently, to the best of my knowledge, there is no way to get this behavior — though I did have it working in an older version of dunst.
Today, the 3 notifications above will appear like:
With this scheme, if I try to click on a notification, and a new notification pops up at the wrong moment, I will accidentally click the wrong one (since they all get shifted).
I remember fighting against this in the older version, too, and wound up with the positioning I chose just because it was the only one that seemed to preserve the positions of existing notifications when adding new ones.
Now, I can get similar behavior by putting this in the top-right (rather than bottom-left), but it's a little annoying to change my habits (:
My suggestion: Perhaps have some "preserve_position" boolean config value, which will ensure that existing notifications do not get moved, as new ones are added. I could also imagine it being accomplished via some sort of "gravity" value or "flow direction" or other approach. But the boolean seems most direct.
The text was updated successfully, but these errors were encountered: