Any decent manager shouldn't care but you can easily automate a python script to do some non consequential key presses every few minutes.
I actually did that at a previous job where I had to use windows 10 and (I think) the sys admin policy was to 'lock screen' after 20 min of inactivity, so I eventually got fed up of having to login all the time.
Look into AutoHotkey if you're on Windows. It's a nice automation tool, particularly shining for anything input-related. You should be able to whip up a script that moves your mouse around on idle quite easily.
I remember using python at the time because I wasn't given admin rights on those machines (contractor) but they had python 3 already installed, it was just the quickest to do the job without admin escalation.
Just to clarify you can definitely also do mouse moves with python and ctypes.
I actually did that at a previous job where I had to use windows 10 and (I think) the sys admin policy was to 'lock screen' after 20 min of inactivity, so I eventually got fed up of having to login all the time.