#!/bin/bash xinput --disable 12 if [ $? -ne 0 ] echo "Keyboard disabled" # xinput --enable 5 # if [ $? -ne 0 ] # echo "Keyboard enabled" # fi