Forrest logo
back to the xinput tool

xinput:tldr:a0f9d

xinput: Change a setting of an input device.
$ xinput set-prop ${id} ${setting_id} ${value}
try on your machine

The command "xinput set-prop ${id} ${setting_id} ${value}" is used in Linux systems to set the value of a specific property for an input device.

Here's what each part of the command represents:

  • ${id}: It is a placeholder for the input device's ID. The input devices can be keyboards, mice, touchpads, or other peripherals connected to the system.

  • ${setting_id}: This represents the ID of the specific property you want to modify. Each input device has various properties that determine its behavior or settings. Examples of setting IDs could be "Device Accel Constant Deceleration" or "Natural Scrolling Enabled."

  • ${value}: This is the value you want to set for the specified property. It can be a number, boolean (0 or 1), or any other value expected by the property you are modifying.

By replacing ${id}, ${setting_id}, and ${value} with the actual values specific to your device and desired settings, you can use the command to change the properties of an input device.

For example, if you want to set the device acceleration constant deceleration to 2 for an input device with ID "10," the command would be: xinput set-prop 10 "Device Accel Constant Deceleration" 2

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xinput tool