How to lock and unlock keyboard in Ubuntu ?
18,321
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
.
Related videos on Youtube
Author by
Shohanur Rahaman
Updated on September 18, 2022Comments
-
Shohanur Rahaman over 1 year
I want to lock my desktop keyboard is there any command or shortcut to do this ?
-
TheWanderer almost 9 yearsYou mean so it doesn't input anything?
sudo apt-get install xtrlock
might be what you need. ubuntuforums.org/showthread.php?t=993800 -
Shohanur Rahaman almost 9 yearsyes it doest not input anything.
-
TheWanderer almost 9 yearsDid that program work?
-
Shohanur Rahaman almost 9 yearsThis is stupid program, it locks my keyboard,cursor and I cant unlock those.
-
Shohanur Rahaman almost 9 yearswhere I type my password ? I didn't found any password typing field when I locked keyboard.
-
TheWanderer almost 9 yearsJust type it. It's automatically listening
-
Shohanur Rahaman almost 9 yearsit works but It lock both keyboard and mouse. Is there any way to lock only keyboard not cursor so that I can scroll and click ?
-
TheWanderer almost 9 yearsI'm not sure. You can look in the config files (probably somewhere under
~/.config
). -
TheWanderer almost 9 yearsIs it answer worthy?
-
Kaz Wolfe almost 9 years@Zacharee1 If it solved the problem and you can explain how, then yes.
-
Parto almost 9 years@Zacharee1 please type it below as an answer and I will give you a +1
-
Ron almost 9 yearspossible duplicate of How to disable and enable keyboard in ubuntu? Read it if you want to disable only keyboard.
-
TheWanderer almost 9 years@Ron the problem with that is the keyboard is completely disabled for a certain amount of time. It's not a switch
-
-
Shohanur Rahaman almost 9 yearshow can I config this ?
-
TheWanderer almost 9 yearsI'm going to install it and check it out
-
TheWanderer almost 9 yearsIt doesn't look like there's something that'll lock only the keyboard. You can make two scripts, one to disable the keyboard and one to enable it, but you'd have to make
desktop
files to run those scripts. It would be a hassle to do this. I could help though. I won't be here for about 2 hours though.