Skip to content

Instantly share code, notes, and snippets.

View jotka's full-sized avatar

Jarek Krochmalski jotka

  • Poland
View GitHub Profile
@charliewynn
charliewynn / AHK Script
Last active November 17, 2017 01:52
K95 profile, with autohot key
;you have to re-map the f keys so they work.
;Otherwise AHK will just 'wait' for the number key after - if there is non then nothing happens
f1::f1
f2::f2
f3::f3
f4::f4
f5::f5
f6::f6
f7::f7
f8::f8
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten