I want to lock my desktop keyboard is there any command or shortcut to do this ?
Asked
Active
Viewed 2.3k times
1 Answers
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
-
1Just 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
sudo apt-get install xtrlock
might be what you need. http://ubuntuforums.org/showthread.php?t=993800 – TheWanderer Aug 23 '15 at 03:40~/.config
). – TheWanderer Aug 23 '15 at 04:28