Added a statement for querying whether the device is enabled or not

This commit is contained in:
Brandon Rozek 2020-03-15 15:04:09 -04:00
parent f4ca49807e
commit c28e98db06

View file

@ -28,3 +28,9 @@ xinput enable [id]
```
The ids are listed when you list the devices.
To query whether the device is enabled or disabled:
```bash
xinput --list-props [id] | grep "Device Enabled" | awk '{ print $NF }'
```
This will return $1$ or $0$ depending on if its enabled or not respectively.