summaryrefslogtreecommitdiffstats
path: root/sample_configuration/kb-unlock.sh
blob: f09a2fd7ab0cd6704f2c9e93fbf7f34b9554955e (plain) (blame)
1
2
3
4
5
6
7
8
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