Created attachment 180090 [details] window rules I have set a window rule to apply keyboard shortcut to the specific window as shown in the attached screenshot but the shortcut does not work. I can see that the window is being matched by setting opacity in the same rule so the problem is with applying the shortcut not matching a window. I have similar rules which apply keyboard shortcuts for other windows and they work properly. I tried different keyboard shortcuts and nothing worked. One thing specific to this case is that it's the second window of one application (JetBrains' PyCharm IDE). ``` $ kinfo Operating System: Fedora Linux 41 KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.12.0 Qt Version: 6.8.2 Kernel Version: 6.13.9-200.fc41.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7600 6-Core Processor Memory: 14.8 GiB of RAM Graphics Processor: AMD Radeon Graphics ```
Created attachment 180091 [details] window's properties
I'm able to confirm this behavior on git-master by setting the same keyboard shortcut to the properties of the KWrite window, and using similar rules to the ones you have. When I use the shortcut, nothing happens I'm also able to reproduce the problem with PyCharm (community edition) on Plasma 6.3.4
Thanks TraceyC very much for taking a look at this! > I'm able to confirm this behavior on git-master by setting the same keyboard shortcut to the properties of the KWrite window, and using similar rules to the ones you have. Could you please describe in more details how did you manage to reproduce this with KWrite? I'm asking because I do not see an easy way of doing this. With PyCharm, when one opens debug window it has "Debug" word present in the window's title and this allows to target this window only (as opposed to the main PyCharm window opened earlier which does not have this word in its title). However with KWrite, when one opens the second window its title is the same as the title of the first one ("Welcome – KWrite") which seems to not allow to target each window with separate window rule.
With KWrite, I added a shortcut and kept all the other settings as default Window class - Exact match Match whole window class - Yes Window types - normal window With only one KWrite window open, I expected the shortcut to toggle it. In any case, being able to reproduce with PyCharm matches your situation