blob: c123414851cdfdd0cc3b23496f7e38eece882741 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
# use xinput to get all keyboards and pointers (mouse)
keyboards=$(xinput --list | grep -E "slave.*(keyboard|pointer)" | cut -f2 | cut -d'=' -f2)
for id in $keyboards; do
echo "enabling device #$id"
xinput --set-prop $id "Device Enabled" 1 &
done
wait
|