Git Product home page Git Product logo

8-retro-kbd-ctl's Introduction

Dependencies:
Tested on Python 3.11.8, but the most advanced feature used is probably match.
pcapng (only for scan-usb-hid.py)
pyudev
ioctl-opt

Using it:

USAGE: ./8kbdctl.py [test|force|verbose]... <<command> [args]>...

test - Just go through the motions but do everything except actually updating
       the device.  The device will still be accessed to get the profile.
force - Don't get the profile from the device, making all changes happen
        even if they would be redundant.
verbose - Get a lot of extra information about what's happening.

Command may be:
list-in-codes - List possible codes which relate to keys on the keyboard and
    their names.
list-out-codes - List possible codes which a key may be assigned to and their
    names.
get-profile - Get the profile from the device.
set-name <name> - Set the profile name, as a quirk of the device, setting
    the name to an empty string ("") will disable the profile button.
set-key [<mod-key>+]<in-key> <out-key> - Set a mapping from in-key to
    out-key, with optional mod-key to be pressed at the same time.
set-macro <in-key> <name> <repeats> [events] - Set a macro to <in-key>.
    <repeats> may be 0 to disable a macro, name and any events will be
    accepted, but ignored, except end.
    For each event: up|down <out-key/mod-key> <delay in milliseconds>
                    - or -
                    end
down - Indicate a key press.
up - Indicate a key release.
end - Indicate the end of a macro, this is optional but necessary if
      additional commands are to follow.
set-all-default - Restore all keys to defaults.

8-retro-kbd-ctl's People

Contributors

paulguy avatar

Watchers

 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.