Skip to content
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

dunstctl action is not working, but mouse click works #1345

Open
sakarimov opened this issue Apr 23, 2024 · 3 comments
Open

dunstctl action is not working, but mouse click works #1345

sakarimov opened this issue Apr 23, 2024 · 3 comments
Labels

Comments

@sakarimov
Copy link

          > It would be nice to be able to trigger an action on a keyboard shortcut using sxhkd, however currently that is impossible due to the fact that it is impossible to trigger a notification action via `dunstctl`.

Triggering notification actions pretty much works exactly as you wrote it e. g. dunstctl action, dunstctl action 0 or dunstctl action 0 default all three trigger the default action of the most recent notification.

So what exactly are you looking for? What did you try and what happened that did not match your expectation?

Originally posted by @maxz in #1236 (comment)

e. g. dunstctl action, dunstctl action 0 or dunstctl action 0 default

it's still not working for me, i have no custom action i just want to use the default action when the the notification has URL it should open the browser, i tried all three method and none of those opening the url to browser, when i try to open it by middle click it works perfectly

Installation info

  • Version: v1.11.0
  • Install type: AUR dunst
  • Window manager / Desktop environment: qtile 0.25.1.dev0+g005da458.d20240413
  • Distro: Archlinux
@bynect
Copy link
Member

bynect commented May 2, 2024

This has to do with the fact that urls are not treated as actions. Right now it is not possible to trigger an url with dunstctl action. Maybe we can add it

@bynect bynect added the Feature label May 2, 2024
@sakarimov
Copy link
Author

thank u for the response, i'm not too familiar with c, but if there's direction about adding this feature, i'll try to help

@bynect
Copy link
Member

bynect commented May 3, 2024

I have some ideas, but maybe the simplest would be to wait for #1348. Then you could simply list the current notifications and extract the url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants