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