Skip to content

Hardware Effects

Control built-in hardware lighting effects that run directly on the device.

fx

Apply hardware lighting effects to your device. Hardware effects run on the device itself and persist even when the daemon is not running.

Synopsis

uchroma fx [options]
uchroma fx <effect> [effect-options]
uchroma effect <effect> [effect-options]

Options

OptionShortDescription
--list-lList available effects with their parameters

Examples

List available effects:

bash
$ uchroma fx --list

 Built-in effects and arguments:

breath_dual                    Dual color breathing effect
───────────────────────────────────────────────────────────
color1                         color (default: #00ff00)
color2                         color (default: #0000ff)

breath_random                  Random color breathing
───────────────────────────────────────────────────────────
(no parameters)

breath_single                  Single color breathing effect
───────────────────────────────────────────────────────────
color                          color (default: #00ff00)

...

Apply an effect:

bash
$ uchroma fx spectrum
Effect: spectrum

Apply effect with parameters:

bash
$ uchroma fx static --color "#ff0088"
Effect: static

Available Effects

The following hardware effects are commonly available. Actual availability depends on your device.

Static Effects

static

Solid color across all LEDs.

OptionTypeDefaultDescription
--colorcolor#00ff00LED color
bash
uchroma fx static --color red
uchroma fx static --color "#ff5500"
uchroma fx static --color "rgb(255, 0, 128)"

disable

Turn off all LEDs.

bash
uchroma fx disable

Breathing Effects

breath_single

Single color breathing (pulsing) effect.

OptionTypeDefaultDescription
--colorcolor#00ff00Breathing color
bash
uchroma fx breath_single --color cyan

breath_dual

Two-color breathing effect that alternates between colors.

OptionTypeDefaultDescription
--color1color#00ff00First color
--color2color#0000ffSecond color
bash
uchroma fx breath_dual --color1 red --color2 blue

breath_random

Breathing effect with random colors.

bash
uchroma fx breath_random

Cycling Effects

spectrum

Continuous spectrum cycling through all colors.

bash
uchroma fx spectrum

wave

Color wave that moves across the device.

OptionTypeDefaultDescription
--directionchoicerightWave direction: left, right, up, down
bash
uchroma fx wave --direction left

Reactive Effects

reactive

Keys light up when pressed and fade out.

OptionTypeDefaultDescription
--colorcolor#00ff00Reaction color
--speedint3Fade speed (1-4, where 4 is fastest)
bash
uchroma fx reactive --color orange --speed 2

starlight

Random twinkling stars effect.

OptionTypeDefaultDescription
--colorcolor#ffffffStar color
--speedint2Twinkle speed (1-3)
bash
uchroma fx starlight --color yellow --speed 3

Game Integration Effects

ripple

Ripples emanate from pressed keys.

OptionTypeDefaultDescription
--colorcolor#00ff00Ripple color
bash
uchroma fx ripple --color purple

ripple_random

Ripples with random colors.

bash
uchroma fx ripple_random

Color Formats

Effects that accept color parameters support multiple formats:

FormatExample
Named colorsred, blue, cyan, magenta
Hex (6-digit)#ff0088
Hex (3-digit)#f08
RGBrgb(255, 0, 128)
HSLhsl(330, 100%, 50%)
bash
# All equivalent
uchroma fx static --color red
uchroma fx static --color "#ff0000"
uchroma fx static --color "rgb(255, 0, 0)"

Hardware vs Software Effects

Hardware effects (this page):

  • Run directly on the device firmware
  • Persist when the daemon stops
  • Limited selection and customization
  • Lower CPU usage

Software animations (anim command):

  • Run in the uchroma daemon
  • Stop when the daemon stops
  • Extensive customization and layering
  • More complex visual effects

Use hardware effects for simple, persistent lighting. Use software animations for complex, layered effects.


Checking Current Effect

Use uchroma dump device to see the currently active effect:

bash
$ uchroma dump device | grep current_fx
    current_fx: spectrum

  • anim - Software animation layers with more options
  • brightness - Control effect brightness
  • led - Per-LED effects and colors
  • profile - Save effects as profiles

Released under the LGPL-3.0 License.