However, digging into that script shows that it’s using xinput, and the man page for xinput indicates that would be a mistake in Wayland (I’m running gnome on wayland).
In most instances, using xinput with an Xwayland device is indicative of a bug in a shell script and xinput will print a warning. Use the Wayland Compositor's native device configuration methods instead.