13

I want to lock my desktop keyboard is there any command or shortcut to do this ?

1 Answers1

16

xtrlock might be what you're looking for. It disables the keyboard until you type your password. It does also disable the mouse, but you might be able to change that in the config. Install it by running sudo apt-get install xtrlock.

TheWanderer
  • 19,395
  • 12
  • 50
  • 65
  • 1
    Just showing up 8 years later to say that xtrlock works like a charm on my Lubuntu machine. The man page does say that it is built for X11 but might not work very well on an environment that uses Wayland, so mind that. – Pablo Sánchez Jan 25 '24 at 03:15