In this brief tutorial, I will show you how to lock the keyboard and mouse, but not the screen in Linux. On Arch Linux and derivatives, run the following command to install it. Also, you can enable or disable screen locking. However, it does have the date and time.
The xtrlock package is available in the default repositories of most Linux operating systems. Click here and Join the Nerd Herd now. The default screensaver is typically configurable, and you can change settings like inactivity period or screen lock delay.