Bug 504758

Summary: rules should have a "ignore global widget shortcuts" in addition to "ignore global shortcuts"
Product: [Plasma] kwin Reporter: Adam Fontenot <adam.m.fontenot+kde>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: isma.af
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Adam Fontenot 2025-05-25 05:42:01 UTC
I use single-key shortcuts quite a lot, for example the meta/win key opens the application menu (I think this is a default setting!) and I set caps lock to open the plasma search widget.

I find using a KWin window rule to avoid activating these shortcuts when playing fullscreen games absolutely invaluable. Right now the only option to do something like this is "ignore global shortcuts", which does exactly what it's supposed to do. Unfortunately this isn't really ideal for most users including me, as it breaks built-in KWin effects like the task switcher (alt-tab). This is annoying because sometimes you really do want to suspend a game temporarily and look at another window. Or on rare occasions a game might hang, and you have to resort to extreme measures to recover your desktop instead of just tabbing out.

My proposal is to add an additional property that allows KWin effects to continue receiving global shortcuts like alt-tab, but disables widget activation via global shortcut. I'm not familiar with the behind the scenes details, but I imagine Plasmashell is requesting to be notified whenever a shortcut registered with one of its widgets is pressed, globally. What I'd like is to disable Plasmashell receiving global shortcuts when the game is running, without inhibiting effects that (as far as I know) are native to KWin. (Ideally this would just affect Plasmashell, as having PrtSc continue to take screenshots with Spectacle would be very useful.

Alternative: maybe this could just be added as a dropdown menu option for the "ignore global shortcuts" property?

Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.7-arch1-1 (64-bit)
Graphics Platform: Wayland