1
0
Fork 0
linux-conf/useful_scripts/falchion/example_script.sh
2022-01-05 19:20:22 +01:00

12 lines
No EOL
308 B
Bash

#!/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