diff options
author | Simon Rettberg | 2016-09-08 11:26:39 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-08 11:26:39 +0200 |
commit | c524f6003caa90ea28e19b90f027302486903e24 (patch) | |
tree | 97ba9382c6781a7765ff4b0603b40d19f771f042 /sample_configuration/kb-lock.sh | |
parent | fix problem with ghost click. (diff) | |
download | pvs2-c524f6003caa90ea28e19b90f027302486903e24.tar.gz pvs2-c524f6003caa90ea28e19b90f027302486903e24.tar.xz pvs2-c524f6003caa90ea28e19b90f027302486903e24.zip |
Rename lock/unlock scripts to kb-lock and kb-unlock so you know it's for the keyboard
Diffstat (limited to 'sample_configuration/kb-lock.sh')
-rwxr-xr-x | sample_configuration/kb-lock.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sample_configuration/kb-lock.sh b/sample_configuration/kb-lock.sh new file mode 100755 index 0000000..68cbc40 --- /dev/null +++ b/sample_configuration/kb-lock.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# use xinput +keyboards=$(xinput --list | grep "slave" | grep "keyboard" | cut -f2 | cut -d'=' -f2) + + +for id in $keyboards; do + echo "disabling device #$id" + xinput --set-prop $id "Device Enabled" 0 +done
\ No newline at end of file |