initial commit
This commit is contained in:
15
DisableKeyboard.sh
Executable file
15
DisableKeyboard.sh
Executable file
@@ -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
|
||||||
|
|
||||||
|
|
||||||
15
EnableKeyboard.sh
Executable file
15
EnableKeyboard.sh
Executable file
@@ -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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
15
keyboardSwitch.sh
Executable file
15
keyboardSwitch.sh
Executable file
@@ -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
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user