Commit 14ee556f authored by Daniel Stan's avatar Daniel Stan pour la souris

parent 1212ea91
#!/usr/bin/env python3
import dbus
import sys
bus = dbus.SessionBus()
proxy = bus.get_object('org.roccat', '/org/roccat/Konepure')
interface=dbus.Interface(proxy, dbus_interface='org.roccat.Konepure')
def set_color(color):
interface.GfxSetLedRgb(0, color)
if __name__ == '__main__':
if sys.argv[1:]:
set_color(int(sys.argv[1], 16))
print("Usage: ./ 0xaabbccdd")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment