Coder Social home page Coder Social logo

sayrus / msi-keyboard Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 53 KB

Lightweight software to change your keyboard backlight using hidapi

License: GNU General Public License v3.0

Makefile 3.38% C++ 96.62%
msi cross-platform usb backlight hidapi keyboard-backlight msi-keyboard

msi-keyboard's Introduction

msi-keyboard

Allows the user to change the keyboard backlight using hidapi

This project is based on bparker06's work but aim to fix the animated modes. Moreover, the keyboard is able to do more than what MSI KLM allows you to do which is why the project will allow you to fully control your keyboard's backlight.

Require

  • hidapi.h available on Arch AUR or on Github

Usage

msi-keyboard [-m normal|gaming|breath|audio|wave|dual] [-r (left|middle|right)] [-c (none|red|orange|yellow|green|sky|blue|purple|white)] [-i (high|medium|low|light)] [-c2 (none|red|orange|yellow|green|sky|blue|purple|white)] [-i2 (high|medium|low|light)] [--full]
  • -m: keyboard mode
  • -r: keyboard region on which the color is going to be applied (see also --full)
  • -c: backlight's new color
  • -i: backlight's intensity
  • -c2: backlight's secondary color for breath and wave mode
  • -i2: backlight's secondary intensity for breath and wave mode
  • --full: apply the change on the whole keyboard. -r will be ignored

Usage example

./msi-keyboard -m normal -c green --full
./msi-keyboard -m dual -c red -c2 blue -i2 low

Unknown argument are ignorer, unknown value is set to the default one. The following command does the same as the first one.

./msi-keyboard -m iDoNotExist -c green --full

Run as non-root user

If you want to run the software as a non-root user, you can add the udev rules file to your /etc/udev/rules.d/ directory.

Notes

The audio mode does not work on linux at the moment.

Issues

Fixed: Delay on the wave is wrong, this may comme from the delay.

Fixed: Wrong secondary color on wave mode

Unknown packets

01 02 22 14 00 00 00 00: Usually sent when switching to audio mode

msi-keyboard's People

Contributors

sayrus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

msi-keyboard's Issues

Add package on Gentoo

Hello, thanks you for your works. I have just one question, can you had this repository officially for Gentoo please ? On Gentoo, there aren't any repository for control my MSI keyboard backlight :C

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.