Royal Kludge Config Utility - Manage profiles and per-key RGB lighting
Project description
RKCU - Royal Kludge Config Utility
Python3 based command line utility to manage and modify profiles on Royal Kludge keyboards with per-key RGB support.
Features
- Per-Key RGB Lighting: Set individual colors for each key
- JSON Configuration: Load complex lighting setups from files
- Windows Compatible: Updated for Windows HID interface detection
- RK100 Support: Enhanced for newer Royal Kludge models
- Rangoli: Based on reverse engineering from the rangoli project
Supported Keyboards
- Royal Kludge RK100 (VID: 0x258a, PID: 0x00e0)
- Royal Kludge RK61 (original support)
- Other RK keyboards with compatible HID interfaces
Dependencies
hidapi
Quick Start - Per-Key RGB
List available keys:
python rkcu.py --list-keys
Set individual key colors:
# Set Q key to red, A key to green, Space to blue
python rkcu.py --set-key 15:ff0000 --set-key 29:00ff00 --set-key 56:0000ff
Load colors from JSON file:
python rkcu.py --set-keys-json sample_per_key_config.json
Standard Usage
python rkcu.py <arguments>
Arguments :
--speed, --sp [1-5]
# speed of led animation.
--brightness, -br [0-5]
# brightness of led animation
--sleep, -sl [1-5]
# sleep duration for the keyboard led
- 1: 05 Minutes
- 2: 10 Minutes
- 3: 20 Minutes
- 4: 30 Minutes
- 5: Never Sleep
--rainbow, -rb
# Set LED color mode to Rainbow
--red, -r 0-255
# Red value of Color
--green, -g 0-255
# Green value of Color
--blue, -b 0-255
# Blue value of Color
--animation, -an "animation_name"
# List of availaible animations:
- neon_stream
- ripples_shining
- sine_wave
- rainbow_routlette
- stars_twinkle
- layer_upon_layer
- rich_and_honored
- marquee_effect
- rotating_storm
- serpentine_horse
- retro_snake
- diagonal_transformer
- ambilight
- streamer
- steady
- breathing
- neon
- shadow_disappear
- flash_away
Per-Key RGB Arguments
--set-key KEY_INDEX:RRGGBB
# Set color for a specific key (can be used multiple times)
# Example: --set-key 15:ff0000 (sets Q key to red)
--set-keys-json FILE_PATH
# Load multiple key colors from JSON file
--list-keys
# List all available key indices and names
--clear-custom
# Clear all custom per-key colors
Example :
# Standard usage
python rkcu.py --speed 3 --brightness 5 --sleep 5 -r 255 -g 255 -b 255 -an "ripples_shining"
python rkcu.py -sp 5 -an "rotating_storm" -rb
# Per-key RGB examples
python rkcu.py --set-key 15:ff0000 --set-key 29:00ff00 # Red Q, Green A
python rkcu.py --set-keys-json rainbow_config.json # Load from file
python rkcu.py --set-key 15:ff0000 --brightness 200 # Custom key with brightness
Notes
The --rainbow argument will overrule the --red, --green, --blue parameters.
By default the script would require superuser access to run. In order to run this without root, you can plug a udev rule by performing the following steps :
Step 1: Find your vendor id and product id. Here it is 258a and 004a respectively, and would most likely be same for you if you are having the same keyboard.
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0c45:671e Microdia Integrated_Webcam_HD
Bus 001 Device 002: ID 258a:004a SINO WEALTH RK Bluetooth Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Step 2:
add a rules file to /etc/udev/rules.d
file: 60-rk.rules
SUBSYSTEMS=="usb|hidraw", ATTRS{idVendor}=="258a", ATTRS{idProduct}=="004a", TAG+="uaccess"
replace 258a with your vendor id and 004a with your product id, in case it is different.
Step 3:
Finally, reload your udev rules by running the following command :
# udevadm control --reload-rules && udevadm trigger
What's working?
Currently the script allows setting and configuring of inbuilt color profiles on the keyboard. Custom customisation such as custom LED colors and macros are still not present but will (hopefully) be soon supported.
Credits
Big credits to this issue thread on the OpenRGB Gitlab Repo that served great reference.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rkcu-1.0.0.tar.gz.
File metadata
- Download URL: rkcu-1.0.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
454426a25ec867c9246389fc3deebfc3fa454d321a921fb97b59f0a96c4d09b3
|
|
| MD5 |
ce1e5669719462646f126595c8afc943
|
|
| BLAKE2b-256 |
62aea655286d603f5e5c2aa78bdc00a864848089430994db386acbbf290d0e23
|
File details
Details for the file rkcu-1.0.0-py3-none-any.whl.
File metadata
- Download URL: rkcu-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b58b97ac9a1c48213d0f64e96d887d00128739eda50ca7ac0c70da7a6e392196
|
|
| MD5 |
7a0af8b9c9c78c393ffb34038257f990
|
|
| BLAKE2b-256 |
ab806e53566e83b05c9f0897a40b391bfabc1bba20165b76bedc2f697a794747
|