Alexander Hess
f3f2417442
- in my main office, I have two Elgato keylights placed on my desk and the Python scripts in this commit allow me to control the lights with Gnome keyboard shortcuts - add an installation scripts that sets up a Python venv to run the above scripts
12 lines
270 B
Python
Executable file
12 lines
270 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import leglight
|
|
|
|
LEFT_KEYLIGHT_IP = "192.168.190.62"
|
|
RIGHT_KEYLIGHT_IP = "192.168.190.63"
|
|
|
|
left = leglight.LegLight(LEFT_KEYLIGHT_IP, port=9123)
|
|
right = leglight.LegLight(RIGHT_KEYLIGHT_IP, port=9123)
|
|
|
|
left.incBrightness(5)
|
|
right.incBrightness(5)
|