sometimes one want’s to lock they keyboard against any hacking attempts by the baby, while watching documentaries about animals

su - root
apt update
apt install xtrlock

# test it
bash -c "sleep 1 && xtrlock"

# when the mouse is moved the lock appears and no input can be done

# how to unlock/quit the program:

# switch to another terminal Ctrl+Alt+F1
su - root
ps uax|grep xtrlock
pkill xtrlock

vim /usr/local/bin/lockkbmouse

#!/usr/bin/env bash
sleep 1 && xtrlock

chmod +x /usr/local/bin/lockkbmouse

https://ostechnix.com/lock-keyboard-mouse-not-screen-linux/

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin