Code Monkey home page Code Monkey logo

apex7tkl_linux's Introduction

Steelseries Apex 7 on Linux

This is raw and unpolished code. Use it at your own risk.

ssere.py contains examples on how to:

  • Set key colors (individual or by region)
  • Activate or switch a configuration
  • Update the OLED image or write text to the display

Installation

pip install -r requirements.txt

Usage as non-root

This requires a udev ruleset.

sudo cp 51-apex.rules /etc/udev/rules.d/51-apex.rules && sudo udevadm control --reload && sudo udevadm trigger

CLI usage

Load profile

Takes in the the profile number.

  • ./cli.py config 1

Oled screen control

  • ./cli.py oledblank
  • ./cli.py oled ./images/grimm.png
  • ./cli.py oledtext "Hello" "from the other side"

Color

Takes in pairs of (keycode(s) or region(s), color). You can define multiple keycodes or regions in a given pair by using a comma separator.

Examples:

  • ./cli.py color ALL orange
  • ./cli.py color ALPHA c26838
  • ./cli.py color F9,F10,F11,F12 red
  • ./cli.py color SYMBOLS_LEFT green F1,F2,F3,F4 red -- black

Available regions:

  • FKEYS: Function keys
  • ALPHA: Letters and space bar
  • NUMERIC: Number row
  • SYMBOLS_LEFT: Symbols left of alpha keys
  • SYMBOLS_RIGHT1: Symbols right of alpha keys
  • SYMBOLS_RIGHT2 M1 to M6 and arrow keys
  • KEYPAD: Numeric key pad (not available for Apex7 TKL)
  • ALL: All keys
  • --: Special region that sets the following color on all keys that have not been used so far.

See keys.py for list key codes

apex7tkl_linux's People

Contributors

sullmin avatar frankgrimm avatar sebasmonia avatar dependabot[bot] avatar abodelot avatar cafce25 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.