Control Razer (Chroma) devices from the CLI or your Go apps
Make sure you have a working Go environment (Go 1.11 or higher is required). See the install instructions.
To install go-razer, simply run:
go get github.com/muesli/go-razer
Lantern is a CLI tool (using go-razer) to control your Razer devices. Run the following command to install it:
go get github.com/muesli/go-razer/cmd/lantern
Available effects are wave
, reactive
, spectrum
, breath
, breathdual
, breathrandom
, starlight
, starlightdual
, starlightrandom
, ripple
and ripplerandom
.
$ lantern -effect wave
$ lantern -effect starlightdual -color "#00ff00" -secondary "#aa00aa"
$ lantern -color "#6b6b00"
Monitor your system's CPU usage by turning your keyboard into a gauge:
$ lantern -top
There are currently only a few available themes (feel free to submit more!)
named happy
, soft
, warm
, rainbow
and random
. To try them out, run:
$ lantern -theme happy
You can change the brightness (value in percent) by running:
$ lantern -brightness 80
The brightness
parameter can also be used in combination with any of the
modes described above.