-
Notifications
You must be signed in to change notification settings - Fork 342
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
Action on click on notification ? #163
Comments
Probably for posterity: press ctrl+shift+period. I'm new and had the same question so I started searching. It says here that the context menu can be used to invoke this action. And it looks like the default keyboard shortcut for that is the aforementioned ctrl+shift+period. So there you go. EDIT: In case you knew that but also wanted to be able to do that with the mouse, I'm afraid I will be of no help. |
@deiwin wow, thanks for this, I totally forgot about it. I tried the shortcut but, as expected, it does not work out of the box. If I understood correctly, I have to manually bind an action to the notifications. Do you have doc about this as well? Thanks! |
You can find information about the configuration here: https://github.com/knopwob/dunst#configuration The variable you're looking for should be under
|
Thanks! |
For anyone that has landed here via search, this is very possible through simple scripting via When using So just handle the result: reply_action () {}
forward_action () {}
handle_dismiss () {}
ACTION=$(dunstify --action="default,Reply" --action="forwardAction,Forward" "Message Received")
case "$ACTION" in
"default")
reply_action
;;
"forwardAction")
forward_action
;;
"2")
handle_dismiss
;;
esac |
Thanks the addition! You can also use |
@tsipinakis That's even better! Then you can differentiate when a shortcut dismisses the notification and when the notification is left-clicked. Thank you. Here's how to customize mouse actions in |
@brettinternet thank you! |
I landed here because I wanted to click in my notification and execute the action. On the left, if there is an 'A' on the notification it means there is an action attached and if there's an 'U' it means there is an URL. To execute the action with the mouse, you can do it with a middle click. |
Is there a way to set a keyboard mapping for I tried |
No this is deliberately removed. You can set a shortcut through your DE/WM |
That's what I had as a workaround, thanks! |
Can someone from here explain how can i run my script when i do left click on my mouse to run my script switch_to_workspace (swtiches to my 4 workspace where my vesktop is) because i can't seem to find the workaround. I was only able to make it work when notification pops up, not on left click. here is my config: `[global] ` |
Hi,
I'm using dunst as a notification daemon on my system, and I'm using it in particular to display Thunderbird notifications (thanks to the Gnome Integration addon).
Is there any way to change the click action ? I'd like to be able to focus Thunderbird when I click on the notification.
Thanks
The text was updated successfully, but these errors were encountered: