From 142b666d56fb20e7416653cd4c68347ab7a778e1 Mon Sep 17 00:00:00 2001 From: Homer S Date: Tue, 12 May 2020 16:34:58 +0200 Subject: [PATCH] initial commit --- DisableKeyboard.sh | 15 +++++++++++++++ EnableKeyboard.sh | 15 +++++++++++++++ keyboardSwitch.sh | 15 +++++++++++++++ 3 files changed, 45 insertions(+) create mode 100755 DisableKeyboard.sh create mode 100755 EnableKeyboard.sh create mode 100755 keyboardSwitch.sh diff --git a/DisableKeyboard.sh b/DisableKeyboard.sh new file mode 100755 index 0000000..de217a1 --- /dev/null +++ b/DisableKeyboard.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +xinput --disable 12 +if [ $? -ne 0 ] + echo "Keyboard disabled" + + + +# xinput --enable 5 +# if [ $? -ne 0 ] +# echo "Keyboard enabled" +# fi + + diff --git a/EnableKeyboard.sh b/EnableKeyboard.sh new file mode 100755 index 0000000..42b05bb --- /dev/null +++ b/EnableKeyboard.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +# xinput --disable 3 +# if [ $? -ne 0 ] +# echo "Keyboard disabled" +# fi + + +xinput --enable 12 +if [ $? -ne 0 ] + echo "Keyboard enabled" + + + diff --git a/keyboardSwitch.sh b/keyboardSwitch.sh new file mode 100755 index 0000000..a818169 --- /dev/null +++ b/keyboardSwitch.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +#xinput --disable 5 +#if [ $? -ne 0 ] +# echo "Keyboard disabled" +#fi + + +xinput --enable 5 +if [ $? -ne 0 ] + echo "Keyboard enabled" +fi + +