From 3198aeef2c0fc7db64094277fd6efa7c216eed3d Mon Sep 17 00:00:00 2001 From: moshferatu Date: Fri, 5 Apr 2024 06:02:20 -0700 Subject: [PATCH] Add script to programatically control rgb lighting on GPU --- rgb-lighting/rgb.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rgb-lighting/rgb.py diff --git a/rgb-lighting/rgb.py b/rgb-lighting/rgb.py new file mode 100644 index 0000000..e17a3f2 --- /dev/null +++ b/rgb-lighting/rgb.py @@ -0,0 +1,12 @@ +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') \ No newline at end of file