I am on Debian 13 KDE Plasma with Wayland. I tried kdotool as @Erwan suggests but as expected xprop doesn’t return anything. Apparently, I will also have to use kwindowprop which will take a while to appear on Debian Stable.
There used to be a thing in KDE where you could execute actions and macros based on window titles
Now, that would be nice but unless there is another way it looks like I will have to wait.
Thanks for the help.


Thanks for the tip. Without kwindowprop I will have to wait though.