Closed ventosus closed 10 months ago
The desktop entry is already available for scripts in the environment variable DUNST_DESKTOP_ENTRY
. I don't want to add more variables to the script invocation, since it's less flexible and harder to deal with from the script side.
Ah nice, I've nowhere read about those env vars, that solves my issue, indeed.
All environment variables are documented in the manual page: https://dunst-project.org/documentation/
Issue description
From the default dunstrc:
It would be really nice to have access to the desktop-entry in scripts. Because that is what is needed to take any actions on the window, the notifiaction has come from:
Take the following as example: I like to intercept notifications from dino (and many other applications) and instead of showing them, I'd like to set the urgent flag of the window, so the given workspace in waybar is highlighted and I can go there when I have time.
Currently I have to define and lookup the dektop-entry (appid in sway terms) in the script. If the script would be invoked with the desktoip-entry, one could directly use the latter.
dunstrc
.local/bin/notify-urgent
Installation info
Dunst - A customizable and lightweight notification-daemon 1.9.2 (2023-04-20)
package
sway version 1.8.1
ArchLinux