parsifal/disable_input.sh

9 lines
203 B
Bash
Raw Normal View History

2024-09-19 14:51:50 +02:00
#!/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."