-
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
Custom global actions #669
Comments
Hi, this is not possible as actions are something the client (read: the program that sent the notification) does, the logic isn't being run on dunst, we only send back the action that was chosen. However it might be a good idea to consider custom "actions" which in reality are scripts which are called in similar way to the |
I'm looking for the same functionality as well. Use case: |
Being able to middle click the popup to copy the latest notification to the clipboard would be excellent. |
+1 for this feature. It would be extremely helpful for me, to point out those notifications that I have missed from dunst (timed-out notifications). I could add a left-click/middle-click action to run a script to increase a shared counter variable. This counter can then be subtracted from |
Another nice way would be an environment variable DUNST_ADD_ACTIONS (maybe a BASH array) that allows adding (command line, action name) pairs. This could then be filled from within a "script=". |
I recently found the workaround to define custom actions and I will share it with you. First, I call the shell script using Then, I could override the notification by adding |
maybe something like |
Is there a way to add a custom global action that would be present in all notifications? I would like to add a
copy
action which would copy the text of the notification to my clipboard. For notifications created by me I would be able to specify a script and add this action, but most notifications on my system are not initiated by me.The text was updated successfully, but these errors were encountered: