All Projects → LoLei → razer-cli

LoLei / razer-cli

Licence: GPL-3.0 license
CLI for configuring Razer devices

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to razer-cli

colort
colort[int]
Stars: ✭ 28 (-39.13%)
Mutual labels:  rice, colors
bow-openapi
🌐 Functional HTTP client generator from an OpenAPI/Swagger specification.
Stars: ✭ 47 (+2.17%)
Mutual labels:  effects
L5P-Keyboard-RGB
Cross platform software to control the lighting of the 4 zone keyboard included in the 2020 and 2021 lineup of the Lenovo Legion laptops. Works on Windows and Linux.
Stars: ✭ 79 (+71.74%)
Mutual labels:  effects
nyoom.nvim
Blazing fast, configurable, minimal and lispy neovim config written in Fennel and Rust. Base config for users to extend and add upon, leading to a more unique editing experience. (🚀)
Stars: ✭ 304 (+560.87%)
Mutual labels:  rice
GlowButton
Beautify your layouts with glowing buttons. Support with a ⭐️ Contributions are welcome! 🙌
Stars: ✭ 54 (+17.39%)
Mutual labels:  effects
hsluv-c
C99 implementation of HSLuv (revision 4)
Stars: ✭ 71 (+54.35%)
Mutual labels:  colors
dotfiles
My personal dotfiles repository
Stars: ✭ 36 (-21.74%)
Mutual labels:  rice
FoundryVTT-Sequencer
This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
Stars: ✭ 25 (-45.65%)
Mutual labels:  effects
pi-stomp
pi-stomp is a DIY high definition, multi-effects stompbox platform for guitar, bass and keyboards
Stars: ✭ 42 (-8.7%)
Mutual labels:  effects
CLE
Command Live Environment
Stars: ✭ 21 (-54.35%)
Mutual labels:  colors
AudioEffectDynamics
Dynamics Processor (Gate, Compressor & Limiter) for the Teensy Audio Library
Stars: ✭ 23 (-50%)
Mutual labels:  effects
dotfiles
files that start . and makes my Linux box awesome.
Stars: ✭ 57 (+23.91%)
Mutual labels:  rice
runx
Provide X server on MS Windows with cookie authentication.
Stars: ✭ 67 (+45.65%)
Mutual labels:  x
global-color-picker
start the script and click anywhere to get rgb value at the cursor location
Stars: ✭ 31 (-32.61%)
Mutual labels:  colors
kolorist
A tiny utility to colorize stdin/stdout
Stars: ✭ 160 (+247.83%)
Mutual labels:  colors
console-logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (+141.3%)
Mutual labels:  colors
nix-rice
A library to functionally define your configuration and theme (rice) with Nix
Stars: ✭ 43 (-6.52%)
Mutual labels:  rice
tamcolors
tamcolors is a terminal game library which supports multiplayer and audio. tamcolors gives a buffer which lets the user set the character, foreground color and background color which can draw at a stable FPS of 25 on all supported console.
Stars: ✭ 24 (-47.83%)
Mutual labels:  colors
Coroutines-Animations
Use the power of kotlin coroutines to execute your android animations
Stars: ✭ 31 (-32.61%)
Mutual labels:  x
rainbow.sh
Simple colors for your bash scripts
Stars: ✭ 41 (-10.87%)
Mutual labels:  colors

razer-cli

All Contributors

Command line interface for controlling Razer devices on Linux

About

With this command line interface you can configure your Razer peripherals, such as keyboard and mouse, set their colors and effects, etc.

The most simple use case (for which this tool was originally developed) is to use it in symbiosis with pywal. Then this tool will set your Razer colors to Pywal's colors. See below for more information.

Installation

pip install razer-cli

OR

git clone https://github.com/LoLei/razer-cli.git
cd razer-cli
sudo python setup.py install

OR

git clone https://github.com/LoLei/razer-cli.git
cd razer-cli
pip install . --user

Usage

$ razer-cli -h
usage: razer-cli [-h] [-man [MANUAL ...]] [-v] [-d DEVICE [DEVICE ...]]
                 [-a] [-e EFFECT [EFFECT ...]] [-c COLOR [COLOR ...]]
                 [-z ZONES [ZONES ...]] [-b BRIGHTNESS [BRIGHTNESS ...]]
                 [--dpi DPI] [--poll POLL]
                 [--battery BATTERY [BATTERY ...]] [-l] [-ll] [-ls]
                 [--sync] [--restore] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -man [MANUAL ...], --manual [MANUAL ...]
                        Print help details for given feature(s)
  -v, --verbose         increase output verbosity
  -d DEVICE [DEVICE ...], --device DEVICE [DEVICE ...]
                        only affect these devices, same name as output of
                        -l
  -a, --automatic       try to find colors and set them to all devices
                        without user arguments, uses X or pywal colors
  -e EFFECT [EFFECT ...], --effect EFFECT [EFFECT ...]
                        set effect
  -c COLOR [COLOR ...], --color COLOR [COLOR ...]
                        choose color (default: X color1), use one argument
                        for hex, or three for base10 rgb
  -z ZONES [ZONES ...], --zone ZONES [ZONES ...]
                        choose zone for color(s)
  -b BRIGHTNESS [BRIGHTNESS ...], --brightness BRIGHTNESS [BRIGHTNESS ...]
                        set brightness of device
  --dpi DPI             set DPI of device (use print as a value to show
                        it)
  --poll POLL           set polling rate of device (use print as a value
                        to show it)
  --battery BATTERY [BATTERY ...]
                        set low threshold and/or idle delay (use print as
                        a value to show it)
  -l, --list_devices    list available devices, settings, and their
                        supported capabilities/effects
  -ll, --list_devices_long
                        list available devices settings, and list their
                        supported capabilities/effects
  -ls, --list_devices_short
                        list available devices and their settings
  --sync                sync lighting effects to all supported Razer
                        products
  --restore             Load last used settings
  --version             Print version number

This might be out of date, just run it with -h yourself to see the newest options.

Example usage with Pywal

To get your mouse and keyboard to use Pywal's colors, simply start razer-cli with the -a flag, after having executed wal: razer-cli -a
Example in action here.

Another option is to use razer-cli -e multicolor,xpalette, which not only uses a single color from pywal, but uses the entire 16 color palette.

Other examples

$ razer-cli -e ripple -c ff0000
$ razer-cli -e static -c ffffff

You can also leave out the color or the effect:
$ razer-cli -e breath_single
$ razer-cli -c 55ff99

Currently this will imply the -a flag being used for the missing setting. I plan on also having the option to reuse the current color/effect, if the argument is missing, in the future.

Effects

Effects are listed in razer_cli/settings.py. The effects that are supported per device can be listed with razer-cli -l[l]. Some of the built-in effects or not implemented yet. If such an effect is chosen, a notice will be logged. There are also custom effects that do not exist normally, such as multicolor, which is described in the same file.

Here's a showcase of that effect:

Other symbiosis tools

Dependencies

  • openrazer
    • ⚠️ Do not install openrazer from pip, which is something else.
    • Instead install it from one of the various package managers of your distribution.
  • xrdb
    • Also available on most distros.

Disclaimer

Not all devices have been tested, but basic effects should work everywhere. Some guesswork is being done as to what capabilities are supported on specific devices. If you need more advanced configuration, consider using the GUIs Polychromatic, RazerGenie or RazerCommander which have specific implementations for most devices.

Feel free to open feature request issues or PRs.

Contributors

Thanks goes to these wonderful people (emoji key):


Ansis

💻

Kainoa Kanter

🤔

IFo Hancroft

🐛 📓 📖

GM-Script-Writer-62850

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

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].