4 changed files with 15 additions and 24 deletions
			
			
		@ -0,0 +1,7 @@
					 | 
				
			||||
Section "InputClass" | 
				
			||||
        Identifier "system-keyboard" | 
				
			||||
        MatchIsKeyboard "on" | 
				
			||||
        Option "XkbLayout" "us" | 
				
			||||
        Option "XkbModel" "pc104" | 
				
			||||
        Option "XkbOptions" "caps:swapescape" | 
				
			||||
EndSection | 
				
			||||
@ -1,13 +0,0 @@
					 | 
				
			||||
# -*- conf -*- | 
				
			||||
 | 
				
			||||
# When usb keyboard is plugged in, run inputctl script | 
				
			||||
# Requires: run as local user with X variables set (DISPLAY and XAUTHORITY) | 
				
			||||
 | 
				
			||||
SUBSYSTEM=="usb", | 
				
			||||
	ACTION=="add", | 
				
			||||
		ATTRS{idVendor}=="04d9", | 
				
			||||
		ATTRS{idProduct}=="0169", | 
				
			||||
		OWNER="rick", | 
				
			||||
		RUN+="/home/rick/.local/bin/inputctl -k on" | 
				
			||||
 | 
				
			||||
# https://wiki.archlinux.org/index.php/Udev#Execute_on_VGA_cable_plug_in | 
				
			||||
					Loading…
					
					
				
		Reference in new issue