View Single Post
Old 12-23-03, 11:41 AM   #19
ringerc
Registered User
 
Join Date: Dec 2003
Location: Perth, Western Australia
Posts: 5
Default

@prismo: works4me , and there are some cool things that can be done with it, too. Here's a pointless and impractical example:

brainf__ck.py
Code:
#!/usr/bin/env python

import os
import sys

ascend = range(50,200)
descend = range(50,200)
descend.reverse()

for redgamma in ascend:
        curgamma = str(redgamma / 50.0)
        result = os.system("/usr/bin/nvidia-settings -a localhost:0.0/RedGamma=%s" % curgamma)
for bluegamma in ascend:
        curgamma = str(bluegamma / 50.0)
        result = os.system("/usr/bin/nvidia-settings -a localhost:0.0/BlueGamma=%s" % curgamma)
for redgamma in descend:
        curgamma = str(redgamma / 50.0)
        result = os.system("/usr/bin/nvidia-settings -a localhost:0.0/RedGamma=%s" % curgamma)
for bluegamma in descend:
        curgamma = str(bluegamma / 50.0)
        result = os.system("/usr/bin/nvidia-settings -a localhost:0.0/BlueGamma=%s" % curgamma)

result = os.system("/usr/bin/nvidia-settings -a localhost:0.0/RedGamma=1")
result = os.system("/usr/bin/nvidia-settings -a localhost:0.0/BlueGamma=1")
More useful things, like a toolbar button to toggle vsync, are trivial. I _love_ this tool.
ringerc is offline   Reply With Quote