#!/bin/bash # Disable the ROG Falchion *System Control* interface in libinput (Wayland-safe) # Ref: https://wayland.freedesktop.org/libinput/doc/latest/ignoring-devices.html set -euo pipefail (( EUID == 0 )) || { echo "Run as root (sudo)"; exit 1; } # Defaults for the Falchion 2.4G dongle; override via env if needed. VID="${VID:-0B05}" PID="${PID:-193E}" IFACE="${IFACE:-02}" # bInterfaceNumber for System Control rule=/etc/udev/rules.d/99-ignore-rog-falchion-system-control.rules cat >"$rule" <