mirror of
				https://git.davidovski.xyz/dot.git
				synced 2024-08-15 00:43:28 +00:00 
			
		
		
		
	initial commit
This commit is contained in:
		
						commit
						01ced0b7ce
					
				
					 184 changed files with 35358 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								scripts/ddc-switch-inputs
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								scripts/ddc-switch-inputs
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| #!/bin/bash | ||||
| # Usage: ddc-switch-inputs 1 | ||||
| case $1 in | ||||
|    1 ) | ||||
|       # Config 1: Main PC | ||||
|       OUT=("0x0f" "0x20") | ||||
|       ;; | ||||
|    2 ) | ||||
|       # Config 2: Virtual machine | ||||
|       OUT=("0x11" "0x21") | ||||
|       ;; | ||||
|    * ) | ||||
|       echo "Unknown input '$1'" | ||||
|       exit 1 | ||||
|       ;; | ||||
| esac | ||||
| 
 | ||||
| ddcutil --bus=5 setvcp 60 ${OUT[0]} & | ||||
| wait | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue