Prevent monitor sleeping while gaming

Hi,

I currently have a pretty aggressive timeout for my monitor to sleep (not the whole computer) since I have an OLED monitor and I tend to keep my computer on and step away from it.
The timeout works fine, the problem is that it seems that games don’t prevent the monitor from going to sleep.

How can I prevent the timeout from happening while in game?

Thanks!

Computer details:

Operating System: Bazzite 42
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.14.6-109.bazzite.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XTX