mirror of
				https://github.com/KevinMidboe/chsh.git
				synced 2025-10-29 12:30:13 +00:00 
			
		
		
		
	Scripts/ for misc, start with tbind
This commit is contained in:
		
							
								
								
									
										10
									
								
								scripts/tbind.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								scripts/tbind.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | #!/bin/sh | ||||||
|  |  | ||||||
|  | CAPS_KEY=0x700000039 | ||||||
|  | F10_KEY=0x700000043 | ||||||
|  |  | ||||||
|  | DATA=$(printf '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":%s,"HIDKeyboardModifierMappingDst":%s}]}' $CAPS_KEY $F10_KEY) | ||||||
|  | hidutil property --set $DATA | ||||||
|  |  | ||||||
|  | echo "Successfully overwrote CAPS KEY to F10!" | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user