#!/bin/bash echo "Disabling input devices" for id in $(xinput --list | grep -Eo 'id=[0-9]+' | cut -d= -f2); do xinput --disable "$id" echo "Disabled device ID $id" done echo "All devices disabled."