Skip to content

Instantly share code, notes, and snippets.

View doraorak's full-sized avatar

doraorak

View GitHub Profile
@doraorak
doraorak / fixCapsLock.c
Last active February 21, 2026 03:07
Remove capslock delay on macOS
//effect goes away after rebooting, automation is recommended
void* handle = dlopen("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/HIServices", RTLD_NOW);
xpc_connection_t conn = xpc_connection_create("com.apple.hiservices-xpcservice", NULL);
if (conn == NULL) {
NSLog(@"Error creating connection");
return;
}