There is kde-inhibit --screenSaver <command> provided by KDE.
kde-inhibit --screenSaver <command>
But these days, I would just recommend everyone to use systemd-inhibit --what=idle --why=<because> --who=<myself> <command> instead. Works across desktops and does the same thing.
systemd-inhibit --what=idle --why=<because> --who=<myself> <command>
About selected PowerDevil work in Plasma 6.2 and brightness controls in particular.
There is
kde-inhibit --screenSaver <command>
provided by KDE.But these days, I would just recommend everyone to use
systemd-inhibit --what=idle --why=<because> --who=<myself> <command>
instead. Works across desktops and does the same thing.