diff options
Diffstat (limited to 'sample_configuration/kb-unlock.sh')
-rwxr-xr-x | sample_configuration/kb-unlock.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sample_configuration/kb-unlock.sh b/sample_configuration/kb-unlock.sh new file mode 100755 index 0000000..f09a2fd --- /dev/null +++ b/sample_configuration/kb-unlock.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# use xinput +keyboards=$(xinput --list | grep "slave" | grep "keyboard" | cut -f2 | cut -d'=' -f2) + +for id in $keyboards; do + echo "enabling device #$id" + xinput --set-prop $id "Device Enabled" 1 +done
\ No newline at end of file |