Sure!
- You launch
yadwith your needed args:
yad --title="Backup" --text="Backup completed successfully." --button=OK
Notice how I removed
--window-icon='dialog-information', that hint is ignored under Wayland.
- Either press
Alt + F3 then M, W
OR
Right Click on the
yaddialog titlebar then goSpecial Actions>Configure Special Window Settings...
-
Write a name/description for the rule, then for the
Window titleoption either write the whole title or use a regular expression (in this case it’sBackup, and for the regex you could use something like^Backup) -
Press on
+ Add property..., search forDesktop file name, select it, change the apply mode toForce(so KWin always overrides the icon regardless of what the app reports), and write the name of your.desktopfile.
e.g. if the filename is
nvim.desktopthen writenvim. KWin searches for a matching.desktopfile in the standard XDG data directories (/usr/share/applications/,~/.local/share/applications/, etc.)
- If you don’t have an existing
.desktopfile that uses the icon you want, you can create one pointing to the icon path you want:
cat > ~/.local/share/applications/myapp-custom.desktop << 'EOF'
[Desktop Entry]
Type=Application
Name=My App
Icon=/path/to/your/icon.png
NoDisplay=true
EOF
Then in the previous step instead of putting nvim as Desktop file name you’d put myapp-custom.