# Icon in panel for yad script

**URL:** <https://discuss.kde.org/t/icon-in-panel-for-yad-script/46764>\
**Category:** Help\
**Created:** [May 5, 2026, 6:39am UTC](https://discuss.kde.org/t/icon-in-panel-for-yad-script/46764 "2026-05-05T06:39:09Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![reisub](https://discuss-cdn.kde.org/user_avatar/discuss.kde.org/reisub/32/28313_2.png) [@reisub](https://discuss.kde.org/u/reisub)\
**Post date:** [May 5, 2026, 10:15pm UTC](https://discuss.kde.org/t/icon-in-panel-for-yad-script/46764/10 "2026-05-05T22:15:38Z")

</div>

I’m not completely sure but what I did for `neovim` could be relevant / helpful? Iirc then you can’t control things like window icons or the position of the window itself because it’s controlled by the compositor in this case Wayland which ignores those hints. I used a `.desktop` workaround in my case which should work for you too.

My post:

> [@Change kitty task manager icon to Neovim when using Neovim](https://discuss.kde.org/t/change-kitty-task-manager-icon-to-neovim-when-using-neovim/46590):
>
> I wrote 2 Window Rules for 2 reasons one is purely esthetic the 2nd one is for it to be easier to differentiate kitty with neovim from other kitty instances. [Change icon back to kitty] Description=Change icon to back to kitty desktopfile=kitty desktopfilerule=2 title=^(?!nvim) titlematch=3 wmclass=kitty wmclassmatch=1 [kitty - change icon to neovim] Description=kitty - change icon to neovim desktopfile=nvim desktopfilerule=2 title=^nvim titlematch=3 wmclass=kitty wmclassmatch=1 If there’s a …

I’m essentially targeting the window by its title with a KWin Script then setting its “Desktop file” option to `neovim` you could try the same with your `yad` window since the `title` arg is respected by Wayland

More info:

> **[Fixing Wayland taskbar icons](https://nicolasfella.de/posts/fixing-wayland-taskbar-icons/?utm_source=perplexity)**
>
> A common papercut in a Wayland session is entries in the task manager showing a generic Wayland icon instead of the proper application icon. Here’s a KWallet window having a generic icon in the task manager (on the right):
> This is due to the shell...

---

_[View the full topic](https://discuss.kde.org/t/icon-in-panel-for-yad-script/46764)._
