Giter VIP home page Giter VIP logo

msi-steelseries's Introduction

msi-steelseries

A small D application that use gtkD and libusb-d to let you use the Steelseries keyboard found on the MSI GS73VR 6RF laptop. It may work with other hardware too. I mean, if you don't care about making your keyboard looks like a christmas tree at work.

Only tested on Linux Mint 18.2

Compiling:

  • Install "libusb-1.0-0-dev"
  • Install DMD and DUB : http://d-apt.sourceforge.net/
  • Then enter in the project directory and run "dub" in a terminal
  • ???
  • Profit!

How it work:

  • It create an icon in the status bar and let you quick set a color, a preset, or quit.
  • If you click the status icon, the "preset" window will appear, from here you can manage your presets.
  • Presets are saved in "~/.config/msi-steelseries.json".
  • Double click and other cool stuff are missing for now.
  • You can edit the configuration file to add your custom icon that is used in the status bar and windows used in app.

What is implemented:

  • Normal mode: Set Left Middle and Right, color and intensity.
  • Game mode: Set Left only, color and intensity (other parts are turned off).

I don't plan to make use of custom RGB color (but the Keyboard class can) so the classes are not designed to handle it. Preset class can only get/set predefined colors and intensities.

Regarding the code:

  • I'm not that familiar with D code, in fact I'm an Android developper so you can find some dava code and your eyes can start bleeding.
  • The user interface is designed using Glade, they are loaded in Controller classes that manage an UI part (window or custom layouts to be included at runtime).

This program make use of libusb-d that is included in this repo. Only imports path was modified to make it usable with new version of D build tools. See https://github.com/brbx/libusb-d

D-Language bindings to gtk-3.6. See https://gtkd.org/.


This work was only possible thanks to some other people that worked on it prior to me:

https://github.com/stevelacy/msi-keyboard

https://github.com/bparker06/msi-keyboard

msi-steelseries's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.