summaryrefslogtreecommitdiffstats
path: root/sample_configuration/kb-unlock.sh
blob: 09dc27010015a522d813fe744c166e83c3d8f642 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/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