#!/usr/bin/perl # # gamma adjustments via DarkAdapted X # # Scott Lawrence # 2006-Oct-19 # yorgle@gmail.com # http://umlautllama.com # # lets you do simple gamma adjustments from the command # line via whispering to DarkAdapted X. :D # run an applescript sub AppleScript { my($script) = shift @_; system(qq|/usr/bin/osascript -e '$script'|); } # generate the applescript for a gamma setting passed in sub setGamma { $r = shift; $g = shift; $b = shift; $script =<