dotfiles/.config/gnome-settings/elgato/dec_brightness.py
Alexander Hess 337bebbb0c
Add keyboard shortcuts for Elgato key lights
- create Gnome keyboard shortcuts to manage the Elgato key lights:
  + toggle
  + increase and decrease brightness
- we use Python scripts in ~/.config/gnome-settings/elgato
  based on the "leglight" PIP package
  (Source: https://gitlab.com/obviate.io/pyleglight)
2022-08-14 17:38:42 +02:00

12 lines
268 B
Python
Executable file

#!/usr/bin/env python
import leglight
LEFT_KEYLIGHT_IP = "192.168.20.72"
RIGHT_KEYLIGHT_IP = "192.168.20.73"
left = leglight.LegLight(LEFT_KEYLIGHT_IP, port=9123)
right = leglight.LegLight(RIGHT_KEYLIGHT_IP, port=9123)
left.decBrightness(5)
right.decBrightness(5)