windows-automation/rgb-lighting/rgb.py

12 lines
312 B
Python

from openrgb import OpenRGBClient
from openrgb.utils import RGBColor, DeviceType
# Ensure OpenRGB is running and the server is enabled.
client = OpenRGBClient()
gpu = client.get_devices_by_type(DeviceType.GPU)[0]
gpu.zones[0].set_color(RGBColor(20, 20, 20))
gpu.set_mode('direct')
client.save_profile('test')