mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-25 09:36:31 -05:00
Added a statement for querying whether the device is enabled or not
This commit is contained in:
parent
f4ca49807e
commit
c28e98db06
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue