summaryrefslogtreecommitdiffstats
path: root/sample_configuration/kb-unlock.sh
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-08 11:26:39 +0200
committerSimon Rettberg2016-09-08 11:26:39 +0200
commitc524f6003caa90ea28e19b90f027302486903e24 (patch)
tree97ba9382c6781a7765ff4b0603b40d19f771f042 /sample_configuration/kb-unlock.sh
parentfix problem with ghost click. (diff)
downloadpvs2-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-unlock.sh')
-rwxr-xr-xsample_configuration/kb-unlock.sh9
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