<div dir="ltr">On Tue, Dec 18, 2012 at 2:14 PM, Ian Kelling <span dir="ltr">&lt;<a href="mailto:ianowl@gmail.com" target="_blank">ianowl@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m working on setting up a binding to set brightness/color temperature in a way similar to the program redshift does with randr. <a href="http://jonls.dk/redshift/" target="_blank">http://jonls.dk/redshift/</a></blockquote>
<div><br></div><div>Redshift and f.lux both work fine with xmonad.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just a first look, I see redshift calling xcb_randr_set_crtc_gamma from #include &lt;xcb/randr.h&gt;, and I&#39;m wondering how to do the equivalent in xmonad.<br>
</blockquote><div><br></div><div>If for some strange reason you must do it with xmonad (this is not a particularly good idea, especially considering that the Xlib API appears to require callbacks), you want the XRandR bindings for Xlib.  I don&#39;t see any bindings on Hackage, and neither the Haskell X11 package nor xmonad provides them, so expect to learn how to use hsc2hs.  &quot;man 3 Xrandr&quot; for the Xlib API, although the manpage I have locally is rather sparse so you may need to look for more information elsewhere.</div>
<div><br></div><div>Alternately, you can &quot;spawn&quot; the xrandr shell command; see the -gamma option.</div><div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div>
<div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div>
</div><br>
</div>