Inhibit Sleep via KDE Connect / command

Plasma has 2 GUI ways of blocking automatic screen turning off and lockscreen.

I know that you can change the behavior to do whatever you like in systemsettings, and I know that EU regulation forced Plasma devs to reduce the screen turn off timespan by default.

Nonetheless, when using a laptop for presentations or watching movies, it does not always reliably inhibit sleep.

Either a video player is paused, or it simply doesnt work, even though it should.

This might be an x y problem which should be solved at the application level (certainly the GNOME way lol).

But how can I find the CLI way to turn on global sleep inhibition by plasma?

I have experimented with systemd-inhibit but afaik it is a process that is spawned and runs, could be killed, could work and would be cross-desktop, but the plasma solution sounds nicer, also with GUI integration

This would be part of the set of commands for this goal

Some years ago I wrote this script GitHub - luisbocanegra/linux-pause-auto-sleep-and-lock: Manually block auto suspend and screen locking from commandline or a keyboard shortcut · GitHub

With that I can run pause-auto-sleep & once to inhibit and again to un-inhibit