From 9d548617a6ff3f85b7731775f4df9b6a6cee3906 Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Wed, 18 May 2016 13:36:50 +0200 Subject: added sample scripts and README. --- opt/unlock.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 opt/unlock.sh (limited to 'opt/unlock.sh') diff --git a/opt/unlock.sh b/opt/unlock.sh new file mode 100755 index 0000000..f09a2fd --- /dev/null +++ b/opt/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 -- cgit v1.2.3-55-g7522