Skip to content

Feature Request: Configurable "dunstctl close" Behavior #846

@S-u-b

Description

@S-u-b

According to dunstctl's help output:

$ dunstctl --help
  close                             Close the *last* notification

It's unclear in which sense "last" is being used here, until one reads the man page:

$ man 1 dunstctl
...
       close
           Close the *topmost* notification currently being displayed.
...

I'd like to propose new global option being made available to control whether the "first" vs "last" or "topmost" vs "bottommost" notification is closed: "close_order" (or go with whatever you prefer). Once implemented, if generating notifications as follows:
notify-send 1
notify-send 2
notify-send 3
notify-send 4
notify-send 5

...produces these notification results:
1
2
3
4
5

Then setting the close_order option to "top" or "last" closes the oldest notification when dunstctl close is run:
1
2
3
4
5

While setting the close_order option to "bottom" or "first" closes the oldest notification when dunstctl close is run:
1
2
3
4
5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions