Bug 487304 - Allow inhibiting Night color while user-specified applications are running
Summary: Allow inhibiting Night color while user-specified applications are running
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_nightcolor (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-20 23:26 UTC by tomashnyk
Modified: 2025-03-12 01:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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