Bug 487304

Summary: Allow inhibiting Night color while user-specified applications are running
Product: [Applications] systemsettings Reporter: tomashnyk
Component: kcm_nightcolorAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: davet, doug.hs, its.anhil+kde, kroot.patel, kwin-bugs-null, madness742, nate, photmailw, serg
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tomashnyk 2024-05-20 23:26:12 UTC
It might make sense for users to disable Night color for games or videos, especially in fullscreen, when the intended color might often be desired by the user. As of now, one needs turn it off (and then on) manually or write scripts per app to do that (like this for MPV for example: https://gist.github.com/Zharkan/5f65ff9b1da85b2a2c79b777ed9e6199).

It would be great if it were possible to configure KDE to do this automatically. One would need a way to select applications  and/or a checkbox to disable the feature for fullscreen windows.

This was also discussed here: https://discuss.kde.org/t/make-exceptions-for-night-color-in-some-apps/2392
Comment 1 Nate Graham 2024-05-24 01:23:52 UTC
We can't disable it only for certain apps, but we can inhibit it globally when those apps are running.
Comment 2 Serg Podtynnyi 2024-05-30 14:57:16 UTC
Yes, the one toggle like "Disable Nigh Light on Full-screen Windows" would cover most of the cases - Video,Games, full screen blender etc.
Is there is good way to catch Full-screen event from kwin for this?  

PS
Exclude List will be next step to achieve more flexibility.
Comment 3 David Thiele 2024-05-30 16:38:36 UTC
I'd like to suggest looking at the Caffeine[1] gnome shell extension for inspiration which does this extremely well. It also inhibits idle (automatic screen locking) which is still a big problem because most games don't do this by themselves (could work around 328987 for example).

[1] https://github.com/eonpatapon/gnome-shell-extension-caffeine
Comment 4 Nate Graham 2025-06-24 22:25:26 UTC
*** Bug 505935 has been marked as a duplicate of this bug. ***