Zend certified PHP/Magento developer

Disable screen saver when using HDMI in Windows 11

I normally want my screen saver to come on after a few minutes of inactivity, but I need to give presentations where I run slides from my computer to a projector through HDMI. In these latter cases, it’s really inconvenient to have the screen shut off if I don’t touch anything every couple minutes. Is there a way to have separate screen saver settings on Windows 11 that apply only when an HDMI cable is plugged in?