It’s possible to inhibit the display turn off in kde using ``kde-inhibit --power --screenSaver ``` However, I want to inhibit the display turning off only when playing media (either by spotify or a browser), and let it sleep as usual when not playing media.

How could I achieve this? Is there a lower level solution that doesn’t envolve the DE’s setting?