summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsample_configuration/kb-lock.sh4
-rwxr-xr-xsample_configuration/kb-unlock.sh5
2 files changed, 7 insertions, 2 deletions
diff --git a/sample_configuration/kb-lock.sh b/sample_configuration/kb-lock.sh
index 36a84c8..27db6da 100755
--- a/sample_configuration/kb-lock.sh
+++ b/sample_configuration/kb-lock.sh
@@ -6,5 +6,7 @@ keyboards=$(xinput --list | grep -E "slave.*(keyboard|pointer)" | cut -f2 | cut
for id in $keyboards; do
echo "disabling device #$id"
- xinput --set-prop $id "Device Enabled" 0
+ xinput --set-prop $id "Device Enabled" 0 &
done
+
+wait
diff --git a/sample_configuration/kb-unlock.sh b/sample_configuration/kb-unlock.sh
index 09dc270..c123414 100755
--- a/sample_configuration/kb-unlock.sh
+++ b/sample_configuration/kb-unlock.sh
@@ -5,5 +5,8 @@ keyboards=$(xinput --list | grep -E "slave.*(keyboard|pointer)" | cut -f2 | cut
for id in $keyboards; do
echo "enabling device #$id"
- xinput --set-prop $id "Device Enabled" 1
+ xinput --set-prop $id "Device Enabled" 1 &
done
+
+wait
+