mirror of
				https://github.com/Brandon-Rozek/website.git
				synced 2025-10-31 13:51:13 +00: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…
	
	Add table
		Add a link
		
	
		Reference in a new issue