Is there a command line (CLI) command to disable all keyboards on a machine, and then also a CLI command to re-enable them?

I’m on a laptop with an internal and external keyboard, I need to disable/enable both of them.

More Details

I’m on Ubuntu 22.04.3 LTS.

It should disable the keyboards across the board, it should not work anywhere at all (CLI, GUI, etc).

I’m creating a bash script that disables all keyboards for a finite time, once the time is up the script re-enables the keyboards.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *