All Projects โ†’ cyanogen โ†’ uchroma

cyanogen / uchroma

Licence: LGPL-3.0 license
An advanced driver for Razer Chroma hardware in Linux

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to uchroma

input-event
๐ŸŽน Read and parse input device(like mouse, keyboard, joystick and IR-Remote)'s event data.
Stars: โœญ 45 (+0%)
Mutual labels:  keyboard, hardware, mouse
snake
A stylised graphical tool for configuring and controlling Razer devices on Linux
Stars: โœญ 52 (+15.56%)
Mutual labels:  keyboard, mouse, razer
habits
An application to monitor your habits with your PC. So you can study how many kilometers travel with your mouse or how many keystrokes.
Stars: โœญ 19 (-57.78%)
Mutual labels:  keyboard, mouse
Windows User Action Hook
A .NET library to subscribe for Windows operating system global user actions such mouse, keyboard, clipboard & print events
Stars: โœญ 224 (+397.78%)
Mutual labels:  keyboard, mouse
Enigo
Cross platform input simulation in Rust
Stars: โœญ 254 (+464.44%)
Mutual labels:  keyboard, mouse
Android Keyboard
Android Keyboard with 180+ dictionaries. Support swipe input (sliding input), Emoji keyboard, AI predictions, dictionaries downloading, and keyboard themes.
Stars: โœญ 108 (+140%)
Mutual labels:  keyboard, led
G213colors
A Python script to change the key colors on a Logitech G213 Prodigy Gaming Keyboard
Stars: โœญ 110 (+144.44%)
Mutual labels:  keyboard, led
Rkvm
Virtual KVM switch for Linux machines
Stars: โœญ 237 (+426.67%)
Mutual labels:  keyboard, mouse
Globalhooks
Allows you to create global keyboard events
Stars: โœญ 74 (+64.44%)
Mutual labels:  keyboard, mouse
keyboard mouse emulate on raspberry
Bluetooth Keyboard Mouse Emulator on Raspberry Pi
Stars: โœญ 230 (+411.11%)
Mutual labels:  keyboard, mouse
1000hz
Overclock your old mouse and increase its polling rate
Stars: โœญ 45 (+0%)
Mutual labels:  driver, mouse
vmwmouse
VMware mouse driver for Windows 3.1
Stars: โœญ 315 (+600%)
Mutual labels:  driver, mouse
Lot60 Ble Keyboard
A 60% bluetooth keyboard (Hardware)
Stars: โœญ 100 (+122.22%)
Mutual labels:  keyboard, hardware
Neatinput
A .NET standard project which aims to make keyboard and mouse input monitoring easy on Windows and eventually Linux.
Stars: โœญ 89 (+97.78%)
Mutual labels:  keyboard, mouse
Hidusbf
USB Mice Overclocking Software (for Windows)
Stars: โœญ 152 (+237.78%)
Mutual labels:  keyboard, mouse
Mouse2joystick custom cemu
An AutoHotkey Script to allow the use of Mouse and Keyboard control in CEMU. This uses vJoy and provides several additional features over regular keyboard control, like: the ability to control the camera with the mouse, toggle walking speed, in BotW use MouseWheel to change weapons, a separate Toggle key for ZL useful for locking onto a target in BotW.
Stars: โœญ 76 (+68.89%)
Mutual labels:  keyboard, mouse
Xboxkeyboardmouse
Keyboard and mouse for Xbox One streaming on Windows 10
Stars: โœญ 235 (+422.22%)
Mutual labels:  keyboard, mouse
Inputsystem
An efficient and versatile input system for Unity.
Stars: โœญ 1,013 (+2151.11%)
Mutual labels:  keyboard, mouse
Keymousego
็ฑปไผผๆŒ‰้”ฎ็ฒพ็ต็š„้ผ ๆ ‡้”ฎ็›˜ๅฝ•ๅˆถๅ’Œ่‡ชๅŠจๅŒ–ๆ“ไฝœ ๆจกๆ‹Ÿ็‚นๅ‡ปๅ’Œ้”ฎๅ…ฅ | automate mouse clicks and keyboard input
Stars: โœญ 1,145 (+2444.44%)
Mutual labels:  keyboard, mouse
cyclops
Precision current source, with optional optical feedback, for driving LEDs and laser diodes
Stars: โœญ 38 (-15.56%)
Mutual labels:  hardware, led

uChroma - Razer Chroma control for Linux

The Razer Chroma line of peripherals have flashy features such as embedded LED matrices and macro keys. This project aims to provide rich support for these features under Linux without requiring kernel modifications.

Codacy Badge Build Status

What can it do?

  • Supports Razer keyboards, mice, mouse pads, laptops, and keypads
  • Enables activation of built-in hardware lighting effects
  • Several custom effects included for devices with LED matrices, more on the way
  • Rich animation/framebuffer API for creation of custom effects
  • Optimized for low power consumption
  • Simple installation and setup
  • Powerful command line interface
  • D-Bus API
  • 100% asyncio-powered Python, 100% open source (LGPL)

Installation

Ubuntu

Packages are available for Ubuntu Xenial, Yakkety, and Zesty:

UChroma PPA

sudo add-apt-repository ppa:cyanogen/uchroma
sudo apt update
sudo apt install uchroma

Arch

UChroma can be found in the AUR


From Source

UChroma requires Python 3.5 or newer.

To install from source, clone this repository and simply run "sudo make install" which will fetch all required dependencies automatically.

The UChroma daemon installs itself as a systemd user service. You can check the status with:

 systemctl --user uchromad status

Be sure to uninstall any other software which might alter permissions or change behavior of the devices or kernel HID drivers.

Please submit a pull request if you'd like to package for other platforms!

Usage

UChroma consists of two main executables, uchromad and uchroma. The uchromad executable runs in the background as a systemd user service, handles all hardware interactions, executes animations, stores preferences, and publishes several D-Bus services for clients to use. The uchroma command provides a uniform interface to all discovered devices. The CLI tool is based on subcommands (similar to Git), and help can be viewed at any level by passing the "-h" flag.


Listing devices

$ uchroma -l
[1532:0210.00]: Blade Pro (Late 2016) (BladeProLate2016 / v0.38)
[1532:0510.01]: Kraken 7.1 V2 (Kylie) (HN1649D04607845 / v1.135)

The number after the dot is the device index. You may select a target device with the -d flag using the full identifier or just the device index.


Dump device state

$ uchroma -d 0 dump

Device properties:

         device-0 โ”‚ Blade Pro (Late 2016)
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
       brightness โ”‚ 100.0
      device_type โ”‚ laptop
   driver_version โ”‚ 0.99
 firmware_version โ”‚ v0.38
       has_matrix โ”‚ True
           height โ”‚ 6
              key โ”‚ 1532:0210.00
      key_mapping โ”‚ {'KEY_F12': [[0, 14]], 'KEY_ENTER': [[3, 15], [(...)
     manufacturer โ”‚ Razer
       product_id โ”‚ 528
    serial_number โ”‚ BladeProLate2016
        suspended โ”‚ False
         sys_path โ”‚ /sys/devices/pci0000:00/0000:00:14.0/usb1/1-8
        vendor_id โ”‚ 5426
            width โ”‚ 25



 Current LED state:

             logo โ”‚ LED: Logo
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
       brightness โ”‚ 0.0
          (float) โ”‚ a float
                  โ”‚ min: 0.0, max: 100.0, default: 0.0
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            color โ”‚  #000000 
          (color) โ”‚ a color
                  โ”‚ default: green
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
             mode โ”‚ STATIC
         (choice) โ”‚ one of: blink, pulse, spectrum, static
                  โ”‚ default: STATIC



 Current animation renderer state:

           plasma โ”‚ Colorful moving blobs of plasma
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
           author โ”‚ Stefanie Kondik
      description โ”‚ Colorful moving blobs of plasma
             name โ”‚ Plasma
          version โ”‚ v1.0
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 background_color โ”‚  #000000 
          (color) โ”‚ a color
                  โ”‚ default: black
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
     color_scheme โ”‚  #004777  #a30000  #ff7700  #efd28d  #00afb5 
    (colorscheme) โ”‚ a list of colors
                  โ”‚ min length: 2
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
              fps โ”‚ 15.0
          (float) โ”‚ a float
                  โ”‚ min: 0.0, max: 30, default: 15
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  gradient_length โ”‚ 360
            (int) โ”‚ an int
                  โ”‚ min: 0, max: None, default: 360
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
           preset โ”‚ Qap
         (choice) โ”‚ one of: best, bluticas, bright, emma, newer, qa(...)
                  โ”‚ default: Qap

Built-in effects

Built-in effects are executed entirely by the hardware, and the supported types and options vary wildly between models.

List available effects:

 $ uchroma -d 0 fx list

 Built-in effects and arguments:

          breathe โ”‚ Colors pulse in and out
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
           colors โ”‚ colorscheme: max length: 2


          disable โ”‚ Disable all effects


             fire โ”‚ Keys on fire
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            color โ”‚ color: default: red
            speed โ”‚ int: min: 16, max: 128, default: 64


            morph โ”‚ Morphing colors when keys are pressed
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
       base_color โ”‚ color: default: darkblue
            color โ”‚ color: default: magenta
            speed โ”‚ int: min: 1, max: 4, default: 2


          rainbow โ”‚ Rainbow of hues
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
           length โ”‚ int: min: 20, max: 360, default: 75
          stagger โ”‚ int: min: 0, max: 100, default: 4


         reactive โ”‚ Keys light up when pressed
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            color โ”‚ color: default: skyblue
            speed โ”‚ int: min: 1, max: 4, default: 1


           ripple โ”‚ Ripple effect when keys are pressed
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            color โ”‚ color: default: green
            speed โ”‚ int: min: 1, max: 8, default: 3


     ripple_solid โ”‚ Ripple effect on a solid background
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            color โ”‚ color: default: green
            speed โ”‚ int: min: 1, max: 8, default: 3


         spectrum โ”‚ Cycle thru all colors of the spectrum


        starlight โ”‚ Keys sparkle with color
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
           colors โ”‚ colorscheme: max length: 2
            speed โ”‚ int: min: 1, max: 4, default: 1


           static โ”‚ Static color
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            color โ”‚ color: default: green


            sweep โ”‚ Colors sweep across the device
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
       base_color โ”‚ color: default: black
            color โ”‚ color: default: green
        direction โ”‚ choice: default: RIGHT
            speed โ”‚ int: min: 1, max: 30, default: 15


             wave โ”‚ Waves of color
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
        direction โ”‚ choice: default: RIGHT
  trackpad_effect โ”‚ bool: default: False

Activate an effect:

$ uchroma -d 0 fx fire --color magenta

Disable effects:

$ uchroma -d 0 fx disable

Brightness control

Overall brightness level of the device is represented by a percentage from 0-100.

Show current brightness:

$ uchroma -d 1 brightness
100.00

Set brightness level:

$ uchroma -d 1 brightness 85

Animations

UChroma supports custom animations on devices which support a lighting matrix, such as Blade laptops, BlackWidow keyboards, and Mamba mice. Several animation renderers are included, and may also be provided by third-party modules. Multiple concurrent (stacked) animations are supported, and layers will be alpha-blended together. Animations may run at different frame rates, and may trigger from input events or sound. Current animation parameters are shown in the "uchroma dump" command, shown above.

List available animation renderers:

 $ uchroma -d 0 anim list

 Available renderers and arguments:

            plasma โ”‚ Colorful moving blobs of plasma
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            author โ”‚ Stefanie Kondik
       description โ”‚ Colorful moving blobs of plasma
              name โ”‚ Plasma
           version โ”‚ v1.0
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  background_color โ”‚  #000000 
           (color) โ”‚ a color
                   โ”‚ default: black
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
      color_scheme โ”‚  #004777  #a30000  #ff7700  #efd28d  #00afb5 
     (colorscheme) โ”‚ a list of colors
                   โ”‚ min length: 2
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
               fps โ”‚ 15.0
           (float) โ”‚ a float
                   โ”‚ min: 0.0, max: 30, default: 15
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
   gradient_length โ”‚ 360
             (int) โ”‚ an int
                   โ”‚ min: 0, max: None, default: 360
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            preset โ”‚ Qap
          (choice) โ”‚ one of: best, bluticas, bright, emma, newer, q(...)
                   โ”‚ default: Qap


          rainflow โ”‚ Simple flowing colors
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            author โ”‚ Stefanie Kondik
       description โ”‚ Simple flowing colors
              name โ”‚ Rainflow
           version โ”‚ 1.0
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  background_color โ”‚ color: default: black
        blend_mode โ”‚ string
               fps โ”‚ float: min: 0.0, max: 30, default: 15
           opacity โ”‚ float: min: 0.0, max: 1.0, default: 1.0
             speed โ”‚ int: min: 0, max: 20, default: 8
           stagger โ”‚ int: min: 0, max: 100, default: 4


           ripples โ”‚ Ripples of color when keys are pressed
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
            author โ”‚ Stefanie Kondik
       description โ”‚ Ripples of color when keys are pressed
              name โ”‚ Ripples
           version โ”‚ 1.0
 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  background_color โ”‚ color: default: black
        blend_mode โ”‚ string
             color โ”‚ color: default: black
               fps โ”‚ float: min: 0.0, max: 30, default: 15
           opacity โ”‚ float: min: 0.0, max: 1.0, default: 1.0
            preset โ”‚ choice: default: Emma
            random โ”‚ bool: default: True
      ripple_width โ”‚ int: min: 1, max: 5, default: 3
             speed โ”‚ int: min: 1, max: 9, default: 5

Start an animation:

$ uchroma -d 0 anim add plasma --color_scheme newer

Add another layer:

$ uchroma -d 0 anim add ripples

####Modify parameters of a running layer:

$ uchroma -d 0 anim mod 0 --color-scheme emma --fps 10

Remove a layer:

$ uchroma -d 0 anim del 1

Stop and clear animations:

$ uchroma -d 0 anim stop

Frequently Asked Questions

My device is not recognized!

If you have a device which is not yet supported, you have a couple of options. If the device does not require a new protocol, it can simply be added to the appropriate YAML file under uchroma/server/data. If you like to see a particular model added, please open an issue on Github. If you've added support for a new device, please open a pull request!

This is great, how can I donate hardware or fund development?

Razer makes a lot of devices, each with it's own quirks. If you'd like to see a piece of hardware supported, the best way to motivate me is to ship me a device to work with. If you'd like to help ensure continued development, please consider sending a donation.

How do I make a custom animation?

Proper documentation on this topic is forthcoming, but having a look at the bundled renderers in uchroma/fxlib should be enough to get started on. Implementations must extend Renderer and implement the init, finish, and draw methods. The animation system is a framebuffer and the draw method will be invoked at the FPS requested by your implementation. It's important to keep the FPS as low as possible to avoid unnecessary CPU usage! The draw method is called with a Layer object, which provides primitives for drawing shapes and setting individual pixels. The buffer of a frame is a Numpy matrix and may be manipulated directly, if desired. Functions for performing color math and generating gradients/color schemes can be found in the uchroma.color module. We use Traitlets for user-configurable parameters.

To get an out-of-tree module recognized, declare an entry point to your effect in your module's setup.py:

entry_points={
    'uchroma.plugins': ['renderer = my.effect.module:MyClass']
}

Send a pull request if you implement a new renderer and would like to have it included!

Are you affiliated with Razer Inc?

Not in any way, but I won't mind if they deliver a truckload of hardware to me :)

Is Windows supported?

No. UChroma relies on UDev and other Linux-specific subsystems to operate.

Is macro recording supported?

The skeleton of macro support is there, and will be finished in an upcoming release.

The ripple effect seems misaligned with my keypresses!

This is because a mapping of keycodes to LED matrix coordinates must be provided, and the layout varies wildly among devices. Full support in the initial release is provided for the Blade Pro laptop, and a "generic" mapping is provided for other models which is almost certainly wrong. If you'd like to create a proper mapping for your device (and contribute it back!), I've created a simple tool which will help. You'll need to start uchromad with UCHROMA_DEV=1 set in the environment, then run "scripts/devstuff keys" from the source distribution. The tool will illuminate matrix cells and you just press the key that is lit, repeating for all cells. After creating a new mapping, it will need merged into the appropriate YAML file under uchroma/server/data (and send a pull request!). Support for cell swapping and relocation is also provided, see the Blade Pro configuration for an example of this.

There are other projects with similar functionality, why this?

This project was born after realizing that there is zero chance to have the required code used by other projects merged into the Linux kernel since it's very specialized and can be done entirely in userspace. I also wanted rich animation support and low power consumption, which required rewriting large portions of the existing project (and my patches weren't moving forward). After implementing the initial user-space driver, I decided to keep going and try to make the hardware really shine under Linux. Choose what works best for you!

Is a GUI available?

Not yet, but it will happen! We have a D-Bus API which provides total control of the hardware and a powerful CLI, but a GNOME frontend is definitely on the radar.

How can I contribute?

Fork the project and send a pull request with a description of your changes. As this project is currently at the initial release stage, a lot of testing across different models is needed. Documentation is lacking, and support for more distributions is also high on the list. If you find a bug, please file an issue on Github.

Powered by...

Awesome libraries used by UChroma:

Credits

Copyright (C) 2021 Stefanie Kondik

Inspired by work from Tim Theede and Terry Cain

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Lesser Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].