1
0
Fork 0
linux-conf/useful_scripts/falchion/example_script.sh

12 lines
308 B
Bash
Raw Normal View History

2022-01-05 19:20:22 +01:00
#!/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