Add falchion file
This commit is contained in:
parent
3e1430c6e2
commit
93fa7905c5
5 changed files with 42 additions and 7 deletions
12
useful_scripts/falchion/example_script.sh
Normal file
12
useful_scripts/falchion/example_script.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
IDENTIFIER="ASUSTeK ROG FALCHION System Control"
|
||||
|
||||
LINE=$(xinput list | grep "$IDENTIFIER")
|
||||
ID=$(echo ${LINE#*id=} | tr '\t' ' ' | cut -d ' ' -f1)
|
||||
|
||||
if [ -n "$ID" ]; then
|
||||
xinput disable $ID
|
||||
echo "Disabled xinput ID $ID ($IDENTIFIER)"
|
||||
else
|
||||
echo "No xinput ID for '$IDENTIFIER' found."
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue