Hands Off

Toddler-proof keyboard & mouse lock for Linux (evdev, works on X11 & Wayland)

About This Project

Hands Off is a Linux desktop utility that freezes keyboard and mouse input on demand, designed to keep a small child from mashing keys or dragging the pointer across open applications. The lock is activated with a key combination on the numeric keypad, and a notification and a red tray icon confirm the lock state. Unlocking is done by typing a configurable secret word, which is never delivered to other applications because the keyboard is grabbed, or by clicking the tray icon when the mouse is not locked. Settings such as the unlock word, unlock methods, mouse locking, and notifications are managed through a tray-icon settings dialog and a JSON configuration file.

The project is written in Python and uses the Linux evdev interface with exclusive device grabbing (EVIOCGRAB) to intercept input at the kernel level, which allows it to behave identically under X11 and Wayland. It is packaged as a Debian package for Debian, Ubuntu, and KDE systems, with an application menu entry and an autostart entry, and can also be run from source in a virtual environment. Access to input devices requires membership in the input group, which the package configures during installation. The project is released under the MIT license.

Hands Off is most useful to parents or caregivers who share a Linux laptop or workstation with young children and need a quick way to prevent interference with running work. It may also suit users who need to temporarily disable input while a device is unattended, such as during a presentation or while a machine is being cleaned.

Project Details

Explore More Projects